You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add allOf support * use patch version of json-schema-merge-allof * fix: publicPath for netlify builds * fix typo * fix: pass around shouldMergeAllOf a bit * fix: remove shouldMergeAllOf * fix: resolve allOf when calculating idSchema and pathSchema * Revert "Fix dependency defaults for uncontrolled components (rjsf-team#1371)" This reverts commit 6728977. * Revert "Revert "Fix dependency defaults for uncontrolled components (rjsf-team#1371)"" This reverts commit ad2bd68. * test: start writing some basic tests * add doc on allOf * add allOf playground sample * handle merging errors by removing allOf * add test for nested allOf's * clarify that allOf keyword is dropped * don't use merge allof fork * remove change to package-lock.json * prettier format
Copy file name to clipboardExpand all lines: packages/core/docs/index.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,10 +190,12 @@ This component follows [JSON Schema](http://json-schema.org/documentation.html)
190
190
191
191
*`anyOf`, `allOf`, and `oneOf`, or multiple `types` (i.e. `"type": ["string", "array"]`)
192
192
193
-
The `anyOf`and `oneOf` keywords are supported, however, properties declared inside the `anyOf/oneOf` should not overlap with properties "outside" of the `anyOf/oneOf`.
193
+
The `anyOf` and `oneOf` keywords are supported; however, properties declared inside the `anyOf/oneOf` should not overlap with properties "outside" of the `anyOf/oneOf`.
194
194
195
195
You can also use `oneOf` with [schema dependencies](dependencies.md#schema-dependencies) to dynamically add schema properties based on input data.
196
196
197
+
The `allOf` keyword is supported; it uses [json-schema-merge-allof](https://github.com/mokkabonna/json-schema-merge-allof) to merge subschemas to render the final combined schema in the form. When these subschemas are incompatible, though (or if the library has an error merging it), the `allOf` keyword is dropped from the schema.
198
+
197
199
*`"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)
0 commit comments