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
I've noticed that when a field is inside a oneOf schema, its id in FieldTemplateProps does not include the full path from the root. Instead, it gets flattened, omitting the parent object that contains the oneOf.
I would expect the id for label to be root_action_url_label, But instead, the id is root_url_label.
The action prefix is missing, making it difficult to track the field’s exact location in the schema.
Is this behavior intentional, or a side effect of how oneOf is handled?
Would it be possible to preserve the full path in the id prop?
Are there any recommended workarounds to reconstruct the correct path?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I've noticed that when a field is inside a
oneOf
schema, itsid
inFieldTemplateProps
does not include the full path from the root. Instead, it gets flattened, omitting the parent object that contains theoneOf
.For example, given this schema:
I would expect the
id
forlabel
to beroot_action_url_label
, But instead, theid
isroot_url_label
.The
action
prefix is missing, making it difficult to track the field’s exact location in the schema.Looking forward to any insights—thanks!
Beta Was this translation helpful? Give feedback.
All reactions