jhthorsen / json-validator

:cop: Validate data against a JSON schema
https://metacpan.org/release/JSON-Validator
56 stars 58 forks source link

Add schema classes for Draft4, Draft6 and Draft7 #210

Closed jhthorsen closed 4 years ago

jhthorsen commented 4 years ago

Summary

This PR has sub classes for JSON-Schema draft-4, 6 and 7. I think there are more things that could be factored out from JSON::Validator, but maybe this is a good start?

Motivation

See #209 for motivation.

References

209, #189.

karenetheridge commented 4 years ago

Some of these changes are not correct. maxContains and minContains are not part of the draft-07 spec -- they were added in draft 2019-09. duration and uuid formats weren't added until 2019-09 either.

jhthorsen commented 4 years ago

Thanks!