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
Describe the bug
It seems that the openapi parser stumbles over when you specify a type as an integer but specify the default in quotes (required for the swagger-ui).
To Reproduce
Steps to reproduce the behavior:
openapi-to-graphql https://staging-api.adoptopenjdk.net/openapi
(node:28060) UnhandledPromiseRejectionWarning: Could not validate OpenAPI Specification 'v3'. expected 'number' to be 'string'
(node:28060) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:28060) [DEP0018] DeprecationWarning: Unhandled promise rejecti
Expected behavior
We should be able to parse the AdoptOpenJDK openapi specification but instead, it errors out.
Additional context
The error comes from the fact that the default is specified in double quotes. Removing the quotes fixes the parser but breaks the swagger-ui
Describe the bug
It seems that the openapi parser stumbles over when you specify a type as an integer but specify the default in quotes (required for the swagger-ui).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should be able to parse the AdoptOpenJDK openapi specification but instead, it errors out.
Additional context
The error comes from the fact that the default is specified in double quotes. Removing the quotes fixes the parser but breaks the swagger-ui
For more context see the following links:
microprofile/microprofile-open-api#420
smallrye/smallrye-open-api#300
The text was updated successfully, but these errors were encountered: