-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Milestone
Description
Scope
model
What do you want to happen?
Additional modifiers for models to make it easy to work with from the JS side.
Scope
Type casting and small transformations
Some ideas:
-
.number: force number conversion-
.floor/.ceil,.round? (TBD)
-
-
.boolean: force boolean conversion- using YAML booleans
-
.string: force string conversion-
.uppercase/.lowercase(TBD) (dismissed: difficult to implement, confusing when typing spaces before next character).trim: trim spaces too
-
-
.nullish: treat""asnullpossibly(dismissed: doesn't add much, easy workaround with<select multiple>,<input checkbox>would be null if empy arrays.length)
Non-goals
Typing validation: we delegate this to browser native <input type> or to end-user discretion with their own library or custom code
I have searched for existing issues
Yes