If you write
foobar {
properties: {
name: { type: 'string'}.
files: {
patternProperties: {
"^[a-z]+$": {
filename: {type:'string'}
}
}
}
}
}
then you have too add,
foobar.type = 'object'
even though:
hello: {
properties: {
message: {type: 'string'}
}
}
doesn't require it. After having been bitten by it, this late evening, I think it should have a consistent
behavior.
At the same time a nice error message when no validators have been found would be nice.
Currently if the scheme doesn't match up, atleast in my case, it outputs 'Cannot read property 'validators' of undefined'
If you write
then you have too add,
foobar.type = 'object'even though:
doesn't require it. After having been bitten by it, this late evening, I think it should have a consistent
behavior.
At the same time a nice error message when no validators have been found would be nice.
Currently if the scheme doesn't match up, atleast in my case, it outputs 'Cannot read property 'validators' of undefined'