Skip to content

Commit

Permalink
Document a gotcha with additionalProperties (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
loganvolkers authored and LucianBuzzo committed Feb 7, 2019
1 parent 1c6dee6 commit 7b3106a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ This component follows [JSON Schema](http://json-schema.org/documentation.html)

You can also use `oneOf` with [schema dependencies](dependencies.md#schema-dependencies) to dynamically add schema properties based on input data.

* `"additionalProperties":false` produces incorrect schemas when used with [schema dependencies](#schema-dependencies). This library does not remove extra properties, which causes validation to fail. It is recommended to avoid setting `"additionalProperties":false` when you use schema dependencies. See [#848](https://github.com/mozilla-services/react-jsonschema-form/issues/848) [#902](https://github.com/mozilla-services/react-jsonschema-form/issues/902) [#992](https://github.com/mozilla-services/react-jsonschema-form/issues/992)

## Tips and tricks

- Custom field template: <https://jsfiddle.net/hdp1kgn6/1/>
Expand Down

0 comments on commit 7b3106a

Please sign in to comment.