Open
Description
We have two different behaviours when dealing with "type": "string"
properties,
- When the field is invalid by any rules, it removes the property.
- When the field is valid, an empty textbox creates an empty string.
This breaks the meaning of valid
when dealing with this case,
- The property is not required
- The property has a minLength
- The model has that property with a valid value inside
ASF reports a valid input at the textbox, while still creating an empty string in the property which is in fact invalid.
Point 3. is not the only way to produce this, see this gist for a working demo, enter text and then delete it you'll get an empty string.