Closed bebraw closed 9 years ago
I just checked the spec and it seems that json-schema
does have a default
keyword. I think the main reason I am not supporting that yet was that I wasn't sure about the correct semantics.
I just checked the spec and it seems that json-schema does have a default keyword. I think the main reason I am not supporting that yet was that I wasn't sure about the correct semantics.
Ok, cool!
I wonder if this is needed even. You can set default values through Form values
property already. Even then it would be possible to keep the logic out of plexus-form
due to this.
What do you think?
Since json-schema
does not define default values, and like you said, it is easy to handle the logic outside of plexus-form
, I am leaning towards not implementing this.
Yeah, let's skip this.
Let's say I want to have my form to have default values (ie. specific strings, numbers, selections). What would be a nice way to deal with that? As far as I understand
json-schema
doesn't provide official support for this. That said having adefault
field available might resolve this nicely.