Skip to content

errors for missing required properties #175

@davidszotten

Description

@davidszotten

currently, if a required property is missing, the error message lists _all the required properties. could we consider listing only the missing ones?

>>> fastjsonschema.validate({'required': ['foo', 'bar']}, {'foo': 1})
JsonSchemaValueException: data must contain ['foo', 'bar'] properties

this is particularly useful with a large number of required properties where eg only one may be missing

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions