z-schema 3.18.4 → 3.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -138,6 +138,7 @@ ZSchema.setSchemaReader(function (uri) {
138
138
  - [Force maxLength to be defined in string type schemas](#forcemaxlength)
139
139
  - [Force properties or patternProperties to be defined in object type schemas](#forceproperties)
140
140
  - [Ignore remote references to schemas that are not cached or resolvable](#ignoreunresolvablereferences)
141
+ - [Ignore case mismatch when validating enum values](#enumCaseInsensitiveComparison)
141
142
  - [Only allow strictly absolute URIs to be used in schemas](#stricturis)
142
143
  - [Turn on z-schema strict mode](#strictmode)
143
144
  - [Set validator to collect as many errors as possible](#breakonfirsterror)
@@ -411,6 +412,15 @@ var validator = new ZSchema({
411
412
  ignoreUnresolvableReferences: true
412
413
  });
413
414
  ```
415
+ ## enumCaseInsensitiveComparison
416
+
417
+ When true, validator will return a ```ENUM_CASE_MISMATCH``` when the enum values mismatch only in case.
418
+
419
+ ```javascript
420
+ var validator = new ZSchema({
421
+ enumCaseInsensitiveComparison: true
422
+ });
423
+ ```
414
424
 
415
425
  ## strictUris
416
426