worldturner / medeia-validator

Medeia JSON-Schema Validator
Other
56 stars 11 forks source link

Adding `includeAdditionalProperties` = false(or true) in Validation option #32

Open vivek656 opened 1 year ago

vivek656 commented 1 year ago

In Validation options , we can pass, format checking , unique key validation method etc. to customize our SchmeaValidator.

This basically means, instiating the additionalPropertyValidator everytime , for every object type, if value is false. Many opensource schema , is used in various companies, many dont put additionalProperties = false on every object type field. Dev wants to work with these schema, but need a way to prevent adding additional non defined properties. these schemas can also be very large. This validationOption , help many to validate the constraint without altering the external schema.

vivek656 commented 11 months ago

@worldturner can anyone reply to this . Adding additional validation at runtime, would be a gamechanger to this library