-
Notifications
You must be signed in to change notification settings - Fork 66
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
Allow references for responses #84
Comments
@gwshaw @jreece1567 this seems pretty reasonable. Any reservations about supporting this? If we're in agreement about supporting this, there is an outstanding PR that we should review and get moving. #89 |
looks like it's more https://github.com/ruby-json-schema/json-schema/blob/master/lib/json-schema/validator.rb#L85 anyways, #89 should fix it. |
@ashoda Any update about this issue ? |
I would like to be able to reuse responses by setting references, like this:
Currently, it ignores the reference, letting any value pass. My current attempt is to fix this is by altering Apivore::Swagger.each_response:
But this raises "NoMethodError: undefined method `validate' for {"$ref"=>"#/definitions/Error"}:Hash"
Any plans for supporting this?
The text was updated successfully, but these errors were encountered: