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
Is your feature request related to a problem? Please describe.
Consider the schema bellow :
{ "title": "Confirmation", "description": "Please to confirm this value is foo", "type": "string", "const": "foo" }
My expectation is to render this schema as a checkbox (two states : value is "foo" = checked or value is empty = not checked), but that behavior is not allowed in UI schema in accordance with the doc.
Describe the solution you'd like
String field with const constraint should be able to be render as checkbox :
Value attribute should be set as const constraint
If checked, model should be updated based on value attribute
If not, property is removed from the model
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
What theme are you using?
core
Is your feature request related to a problem? Please describe.
Consider the schema bellow :
{ "title": "Confirmation", "description": "Please to confirm this value is foo", "type": "string", "const": "foo" }
My expectation is to render this schema as a checkbox (two states : value is "foo" = checked or value is empty = not checked), but that behavior is not allowed in UI schema in accordance with the doc.
Describe the solution you'd like
String field with const constraint should be able to be render as checkbox :
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: