New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export spec should not contain x-oad-type
attributes
#350
Comments
x-oad-type
attributes
Due to lines containing "x-oad-type", the exported spec is incompatible with editor.swagger.io. The following regex operation solves the problem one-way: The cleaned up spec cannot be imported back to openapi.designer. |
We had the same problem with Swagger editor, which is why this issue exists. Please consider increasing the priority, so that output from OpenAPI Designer is compatible with Swagger Editor. |
A follow-up on a previous post, I have used this fix to bridge between openapi.designer and swagger editor both ways: |
When trying to import a spec file from OpenAPI Designer into the Swagger Editor, there are several validation errors. A common validation error is:
This basically means that anywhere there is a
$ref
element, it cannot have any other elements in the same scope. See, for example:Task
Make sure exported spec file does not contain
x-oad-type
attributes. Also, make sure exported spec file is valid - i.e. should not have any validation errors.The text was updated successfully, but these errors were encountered: