koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
538 stars 154 forks source link

Provide solutions more compatible with additionalProperties=false #346

Open albanm opened 2 years ago

albanm commented 2 years ago

We rely heavily on oneOf, allOf, etc. These are largely not compatible with additionalProperties=false. This is a problem as this json schema feature makes for safer apis and more useful validation results (prevents accepting typos in propery names for example).

I need to study the tricks that exist to manage complex cases while still using additionalProperties=false (like defining properties on the root and simply change the "required" attribute of subschemas ?) and improve vjsf compatibility with these cases.