-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dropped "required" attribute for checkbox fields
In JSON Schema, defining a boolean schema key as "required" means that the property must appear in the generated object. Whether it is true or false does not matter. In HTML5, the "required" attribute on a checkbox means "the checkbox must be checked to proceed". That's not really the same meaning. JSONForm does not add the "required" attribute to a checkbox anymore to remain compliant with the definition of "required" in JSON Schema. As a matter of fact, since falsy values are now set in the generated object, the "required" constraint on a boolean schema key is always enforced.
- Loading branch information
François Daoust
committed
Jun 4, 2013
1 parent
8d3bb01
commit 4a00a47
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters