inform alpaca.js of the 'draft' / version

2019-08-24 23:51发布

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

0条回答
登录 后发表回答