Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork136
-
Not sure if misundestanding how to use the library -- I'm new to both OpenApi and openapi-core. The code I'm using is very similar to the following:
It fails with the following stack trace:
Is the problem with my code or with the .json schema? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
'SpecError' suggests is a problem with your specification. What OpenApi version are you using? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you for your response!
If that's the case, shouldn't the problem be caught at the act of instantiating the OpenAPI object?
Ah! I now believe it's v2. The API I'm trying to validate against liveshere, whilethis is the .json schema. For the record, the .json didn't load unmodified into the OpenAPI object because of a couple of wget https://timetableapi.ptv.vic.gov.au/swagger/docs/v3 -O original.jsoncat original.json| python -m json.tool> original_prettyprinted.json and the following patch: --- modified.json2024-03-26 01:39:11+++ original_prettyprinted.json2024-03-26 01:38:49@@ -3571,23 +3571,6 @@ } } },- "V3.FareEstimateResponse": {- "type": "object",- "properties": {- "fare_estimate": {- "$ref": "#/definitions/V3.FareEstimate",- "description": "Resultant set fare estimates"- },- "status": {- "$ref": "#/definitions/V3.Status",- "description": "API Status / Metadata"- }- }- },- "V3.FareEstimate": {- "type": "object",- "properties": {}- }, "V3.Disruptions": { "type": "object", "properties": { |
BetaWas this translation helpful?Give feedback.