Closed alcabon closed 1 year ago
Hi @alcabon So this is more a bug with jsv ... unfortunately it is not maintained anymore so I guess your fix is the right solution
Hi @tchapi
https://github.com/garycourt/JSV/blob/master/lib/json-schema-draft-03.js seems the last version indeed (10 years ago).
You are using your own fork based on this draft version and I have created my own fork too.
Thanks for your help
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
An empty textarea has always instance.getType() === 'string' in jsv.js in my case (?) and the required option doesn't work because it is not "undefined" like an empty input string.
Did you notice the same thing?
I am building a tool based on jsonform.js and that works well excepted for the empty required textarea and the validator of jsv.js that I used.
https://github.com/jsonform/jsonform/blob/master/deps/opt/jsv.js
My quick fix for empty required textareas in json forms for the validator of jsv.js:
"required" : { "type" : "boolean", "default" : false,