Open tomaspavlin opened 3 years ago
When I implemented swagger validation, I also got the following error:
jsonschema.exceptions.ValidationError: 'A' is not of type 'array'
Failed validating 'type' in schema['allOf'][1]['properties']['acceptable_blood_groups']:
{'description': '...',
'example': ['A', '0'],
'items': {'$ref': '#/definitions/BloodGroupEnum'},
'type': 'array'}
On instance['acceptable_blood_groups']:
'A'
Parsing swagger with
allOf
does not work properly.The following model defined in swagger.yaml
was parsed using
with unexpected results in
swagger_parser.definitions_example.RecipientModelToUpdate
:Most of the defined fields are missing.