Closed thekaveman closed 6 years ago
Ok, this is pretty good for now. Example usage:
from mds.schema.validation import ProviderDataValidator
v = ProviderDataValidator(schema_type="status_changes", ref="dev")
data = {}
for error in v.validate(data):
print(error)
Outputs:
'version' is a required property
'data' is a required property
See the wiki for an up-to-date usage example.
Both the UX of the module itself and the errors/messages it produces.
Still WIP, pending further error output improvements.