Switch JSON Form
Toggle a boolean with a switch and restore its default.
How this example works
Add "x-widget": "switch" to a boolean field. Notifications starts on; toggle it and submit to see true or false, then reset to restore true. The annotation changes the control while the schema still validates a boolean.
Notification settings
Submitted JSON
Submit the form to see its JSON.