-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New enumTitles
not working => old enumNames
have warnings ⚠️ that are deprecated 🐛
#4072
Comments
Hi @Fremen1990, there is no bug with enum titles. It is not just replaced name, but also structure. You should make a little more changes in your schema - replace It is described in documentation It should looks like that:
|
@Stusu Thanks for answering the question! @Fremen1990 the solution provided is the preferred approach to providing names for enums. |
We'll plan to keep |
Closing this with the addition of |
enumTitles
not working => old enumNames
have warnings ⚠️ that are depreciated 🐛enumTitles
not working => old enumNames
have warnings ⚠️ that are deprecated 🐛
Prerequisites
What theme are you using?
material-ui
Version
5.16.1
Current Behavior
Current state:
I use currently JSON Schema with⚠️ and will be removed and to use
enumNames
but in DevTools it is shouting thatenumNames
are depreciatedenumTitles
.(console warnings⚠️ are extremaly long and plenty of them)
After trying to change to
enumTitles
:After changing to
enumTitles
I have the samelabel
andvalue
in my inputs and I do not have my input label which was normally working when it was underenumNames
Expected Behavior
To have label from
enumTitles
and value fromenum
=> to just have workingenumTitles
likeenumNames
(depreciated) is workingSteps To Reproduce
Reproduce console warnings⚠️
You can reproduce⚠️ just using
console warnings
enumNames
in local environment and devTools will shout as loud as possible 😅Reproduce
enumTitles
not working as labelsYou can check if
enumTitles
not working you can just paste this example JSON Schema into playground:https://rjsf-team.github.io/react-jsonschema-form/
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: