Problem with contains condition in the array field and conditionally rendered subschema with the integer keys when liveOmmit and omitExtraData are set to true #3920
Labels
any-one-all-of
Related to fixing anyOf, oneOf or allOf
arrays
bug
help wanted
if-then-else
Issues related to handling JSON Schema if/then/else
Prerequisites
What theme are you using?
mui
Version
5.13.2
Current Behavior
I have hit a strange bug, not sure where to look, so I will post working and not working schemas. Hopefully, the maintainers will have an idea of what is wrong.
#1.
if-then
withcontains
. The conditionally rendered schema hasstring
keys. This works.#2.
if-then
withcontains
. The conditionally rendered schema hasinteger
keys. This does not work.Both work well when
liveOmmit
andomitExtraData
are set tofalse
Expected Behavior
I would expect that both scenarios work with turned on liveOmmit and omitExtraData.
However it seems that they reset the field that is used for rendering the dependent schema, but only if that field options match the keys in the dependent schema.
This looks like a bug to me
Steps To Reproduce
#1
#2
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: