Closed joguiMultimedia closed 7 years ago
EDIT: adding double quotes passes the validation. single quotes no. Maybe a parsing artefact?
Hi @joguiMultimedia. I can't reproduce the issue. What dta are you inputing? What browser are you using?
using chrome/chromium. any text is invalid unless surrounding it with double quotes. Maybe chrome textarea have a strange way of returning the data... EDIT2: simple quotes workaround it as weel. EDIT3: without quotes the returned data is null
reproduced with firefox 53.0 as well. Same behaviour, data is null without quotes.
When using initial data to fill the field, the textarea content shows the quotes.
that is the expected behaviour. "any" here mens any schema type (number, boolean, object, array...), not any string. The value to enter in the text area must be a valid JSON expression
OK, I got it. I will use a decorator to enter a free text, arbitrarily sized in a textarea. Unless there is another preexisting solution?
Thanks for quick reply.
Yes, thereis a better way for this. http://brutusin.org/json-forms/#8
I missed that. thanks.
Using the the "Simple" example and changing the property type to "any" displays a textarea control which is OK. As long as the input is empty the validation passes but inserting any text/number throws a validation error. Is this the intent? what content should be entered in "any" field?