You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.
compile object
error line 1:8
{ properties:
{ menu:
{ type: 'object',
constraint: '((true) && (!next.exists() || next.hasChildren())) && (next == null || (true))' } },
required: [ 'menu' ],
constraint: 'true' }
cannot validate schema node with type schema
data was on path: /required
the schema constraint was defined at
Unknown property (not in schema)
run with -v option for fuller error messages
This is not a very descriptive error message. I mean you can kinda pick it out from the message saying that the type is schema (which isn't one of the valid types in the docs) and some problem with the /required path but it doesn't mean much to a first time user. It would be great if it could be something along the lines of on root schema, type attribute must be set when using required attribute
Also an issue in the docs that mislead me:
In the Constraints section, the example code doesn't have a type under $userid. I copied that code and then added required to it which created this error. I'm not sure if type should be required or not in all cases but definitely needs to be documented that the required attribute needs it.
The text was updated successfully, but these errors were encountered:
It seems inconsistent that in a
schema
,type
is required but only when usingrequired
.These are the same blocks of code but with different lines commented out.
This works fine:
This also works fine:
This gives a horrible error. I believe I copied the base config an example (mentioned at the bottom) and then added
required
to it:It gave the following error message:
This is not a very descriptive error message. I mean you can kinda pick it out from the message saying that the type is schema (which isn't one of the valid types in the docs) and some problem with the
/required
path but it doesn't mean much to a first time user. It would be great if it could be something along the lines ofon root schema, type attribute must be set when using required attribute
Also an issue in the docs that mislead me:
In the Constraints section, the example code doesn't have a
type
under$userid
. I copied that code and then addedrequired
to it which created this error. I'm not sure iftype
should be required or not in all cases but definitely needs to be documented that therequired
attribute needs it.The text was updated successfully, but these errors were encountered: