-
Notifications
You must be signed in to change notification settings - Fork 12
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
Generator cannot (?) handle wrapped data from API #14
Comments
Hi @lorenzulrich seems this is a bug, I will fix this |
teobler
added a commit
that referenced
this issue
Feb 16, 2023
Fixed now, will update npm version later. |
1.2.1 released |
@teobler Thanks a lot, I will test this soon! |
I could verify that this fix works as expected. Many thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes, API data is wrapped in an object, e.g.
data
, because errors and meta information would be on the same level. The Open API schema could look like this:And the
AuthenticationData
schema could look like this:(etc.)
This is valid OpenAPI configuration, however the generator cannot handle this and will fail to generate the interfaces.
How could this be implemented in the package?
The text was updated successfully, but these errors were encountered: