Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

OAS 3.0 parse issues #374

Open
imhogan opened this issue Mar 23, 2019 · 3 comments
Open

OAS 3.0 parse issues #374

imhogan opened this issue Mar 23, 2019 · 3 comments

Comments

@imhogan
Copy link

imhogan commented Mar 23, 2019

Hi,
I have an OAS 3.0 YAML file which does not import correctly, however if I use http://convertjson.com/yaml-to-json.htm to convert to JSON, then the file loads okay in stoplight.io. The file is attached.

QrveyWithQuestionsV3.2.oas3.txt
Hopefully this may be a quick fix.
Blessings,
Ian Hogan.

@brianmrock
Copy link

Hi Ian,

I ran this file into our tool and a few others and generally am getting the following errors. Looks like your file may be invalid.

Structural error at components.schemas.AddressQuestion
should have required property '$ref'
missingProperty: $ref
Jump to line 184
Structural error at components.schemas.AddressQuestion
should match exactly one schema in oneOf
Jump to line 184
Structural error at components.schemas.AddressQuestion.allOf.1
should have required property '$ref'
missingProperty: $ref
Jump to line 187
Structural error at components.schemas.AddressQuestion.allOf.1
should match exactly one schema in oneOf
Jump to line 187
Structural error at components.schemas.AddressQuestion.allOf.1.properties.answers
should have required property '$ref'
missingProperty: $ref
Jump to line 196
Structural error at components.schemas.AddressQuestion.allOf.1.properties.answers
should match exactly one schema in oneOf
Jump to line 196
Structural error at components.schemas.AddressQuestion.allOf.1.properties.answers.items
should NOT have additional properties
additionalProperty: schema
Jump to line 198
Structural error at components.schemas.AddressQuestion.allOf.1.properties.answers.items
should have required property '$ref'
missingProperty: $ref
Jump to line 198
Structural error at components.schemas.AddressQuestion.allOf.1.properties.answers.items
should match exactly one schema in oneOf
Jump to line 198

Thanks
Brian

@brianmrock
Copy link

Take a look at those errors, and let me know if you have any additional questions.

@imhogan
Copy link
Author

imhogan commented Mar 27, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants