-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Prerequisites
- I have read the documentation;
- In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
Description
It appears that as of v1.0.6 formData values that do not have a corresponding schema definition are automatically displayed in the form if the additionalProperties key in the schema is set to true. This behaviour did not exist in v1.0.5.
Additionally, if the undefined field is an array, I see an ugly error message in the form.
Steps to Reproduce
- Render a form using
formDatathat contain fields undefined in yourschema
See this codesandbox for v1.0.6 behaviour: https://codesandbox.io/s/v00w0081jl
See this codesandbox for v1.0.5 behaviour: https://codesandbox.io/s/r01o58w6lo
Expected behavior
I expect undefined fields to not be displayed at all in the form, or be provided with some configuration option to stop this from happening.
Actual behavior
Fields in formData that are not defined in the schema are rendered as form inputs, and if they are arrays I see an error.
Version
v1.0.6
