-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add support for $ref to all types that allow reference objects #9
Comments
Looks like Path Item needs to add support for it as well, but the spec is kind of unclear. It says you can do it, but there is no support for it in components. Perhaps that is only for referencing another file. |
Actually, the easiest fix is probably change the parsing to set resolve fully:
|
…solution for reader is set + one bugfix included which deals with the situation when the response does not define any schemas
Fixed. Thanks for the hint @dalewking. Full resolution is set now. :-) |
Now that my issues are fixed, just need a new release, soon |
Most probably I'll do one on the next week. :-) |
Currently reference objects (i.e. $ref) are only supported for schema. It needs to be supported for all types that support reference objects. For the types that swagger-brake cares about that means:
Here is a file that causes an NPE due to ref for the request body:
The text was updated successfully, but these errors were encountered: