thephpleague / json-guard

Validation of json-schema.org compliant schemas.
http://json-guard.thephpleague.com/
MIT License
175 stars 26 forks source link

Use PSR-11 for rulesets & add a set method to the default #103

Closed matt-allan closed 7 years ago

matt-allan commented 7 years ago

I realized the ruleset interface is almost exactly the same as PSR-11. Using PSR-11 means you can use any container you want to build rulesets. This should make it easier to build rulesets with more complex constructor dependencies, cache instantiation, or delegate lookups to make overriding rules easier.