-
Notifications
You must be signed in to change notification settings - Fork 10
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
Ref with anyOf not working as it should #202
Comments
Thank you for collaborating with the project by giving us feedback! Cheers! |
Looking into this I managed to reproduce the NullPointerException with this reduced specification:
This crashes inside the MapperContentUtil class. If
...the crash then happens inside the MapperPathUtil class. Do note that separating the components into a different file is required for the issue to occur. This seems to be caused by the OpenAPI library returning an incomplete list of schemas when calling |
Resolved in the #160 |
In the above case, I have a component with two refs to another component which contains an anyOf specification. The next photo shows the component with the anyOf:
When the multiapi tries to generate all the needed files based on the OpenAPI specification, it returns a NullPointerException. However, if you substitute the first ref from the first image with the component itself like in the next image, it generates the corresponding elements but not properly:
I think that the problem resides in how it works with the anyOf specification.
Here you have a zip containing the files with the OpenAPI specification:
specification.zip
The text was updated successfully, but these errors were encountered: