cue-lang / cue

The home of the CUE language! Validate and define text-based and dynamic configuration
https://cuelang.org
Apache License 2.0
5.15k stars 297 forks source link

encoding/jsonschema: support more options for strict mode #3565

Open rogpeppe opened 3 weeks ago

rogpeppe commented 3 weeks ago

Currently encoding/jsonschema supports two kinds of strictness: strictFeatures and strictKeywords.

We could/should consider supporting other kinds of strictness modes when translating. https://ajv.js.org/strict-mode.html has a good overview of some possibilities in this space.

See also https://ajv.js.org/options.html#strict-mode-options