Skip to content

Commit

Permalink
schema properties are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Jul 23, 2015
1 parent bb81286 commit 4115e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connexion/decorators/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def validate_schema(self, data, schema) -> flask.Response:

# verify if value types are correct
for key in data.keys():
key_properties = schema['properties'].get(key)
key_properties = schema.get('properties', {}).get(key)
if key_properties:
error = self.validate_schema(data[key], key_properties)
if error:
Expand Down

0 comments on commit 4115e04

Please sign in to comment.