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
When validating the swagger document the dictionary that is passed to swagger_spec_validator.validator20 is modified. It is possible for that library to add in any properties it wants to the spec.
Expected behavior, validation doesn't add in extra properties like x-scope to references.
Actual behavior, validation adds in extra properties like x-scope to references which can cause issues when using swagger clients that rely on the swagger_spec validator (like bravado). If the validator sets x-scope to the empty string then the bravado client can't properly understand where those references point to.
This was in a new connexion project, the swagger document had parameters defined as references.
Additional info:
Output of the commands:
python --version Python 3.5.1
pip show connexion | grep "^Version\:" Version: 1.0.89
This is related to this issue though allowing only a copy of the spec to be passed into the validator is a good idea on this side as well. Yelp/swagger_spec_validator#48
The text was updated successfully, but these errors were encountered:
When validating the swagger document the dictionary that is passed to
swagger_spec_validator.validator20
is modified. It is possible for that library to add in any properties it wants to the spec.Expected behavior, validation doesn't add in extra properties like
x-scope
to references.Actual behavior, validation adds in extra properties like
x-scope
to references which can cause issues when using swagger clients that rely on the swagger_spec validator (like bravado). If the validator setsx-scope
to the empty string then the bravado client can't properly understand where those references point to.This was in a new connexion project, the swagger document had parameters defined as references.
Additional info:
Output of the commands:
python --version
Python 3.5.1
pip show connexion | grep "^Version\:"
Version: 1.0.89
This is related to this issue though allowing only a copy of the spec to be passed into the validator is a good idea on this side as well. Yelp/swagger_spec_validator#48
The text was updated successfully, but these errors were encountered: