inform alpaca.js of the 'draft' / version

2019-08-24 23:55发布

问题:

I am seeing small problems with the way my forms are rendering and validating and starting to wonder whether alpaca.js is interpreting the wrong version of jsonschema. With some programming languages, an interpreter might infer such a thing, but I think here it probably wants to be explicitly told.

Would the following lines be enough or does it need something more?

"schema": {
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",

update: Given the following GithHub issue https://github.com/gitana/alpaca/issues/627 it is probably safe to say that Alpaca does not read a 'Draft number' anywhere nor care about what it is