You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use openapi-tui with an openapi document generated by the elysia/swagger plugin [link].
Graphical interfaces like scalar [link] don't seem to have a problem with it.
This is a stripped down version of the document that still raises the error:
I'm afraid to say that the above json file is not a valid openapi json.
Based on openapi-3.0.3 specification heredescription is a required field
You will be able to open the application if you add a description to response object, like this:
"paths": {"/users/": {"get": {"responses": {"200": {"description": "get users",// rest of the object}}}}}
I've changed the label to enhancement in order to provider a better error messages.
zaghaghi
changed the title
Error: 0: paths: data did not match any variant of untagged enum ObjectOrRef
Enhance error messages when input is not a valid openapi
May 1, 2024
I'm trying to use openapi-tui with an openapi document generated by the elysia/swagger plugin [link].
Graphical interfaces like scalar [link] don't seem to have a problem with it.
This is a stripped down version of the document that still raises the error:
openapi-tui -i ./api.json
The text was updated successfully, but these errors were encountered: