voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.52k stars 242 forks source link

Allow override of required in strict mode #406

Closed kwstannard closed 5 years ago

kwstannard commented 6 years ago

Current functionality: required field is ignored in strict mode in favor of making all properties required.

Proposed functionality: required field is used to override the strict mode.

Why: This will allow people to save time by using strict mode even if some properties are optional.

pboling commented 6 years ago

Without looking at the documentation this is how I would have assumed it would work, so I think this is a good change.

kwstannard commented 5 years ago

Clearing out my pull requests that are never going to get merged.