node-raml-validate
node-raml-validate copied to clipboard
[RAML 1.0] Validate incorrectly if property name is `type`
This just an issue I added the failed test case: (https://travis-ci.org/mulesoft-labs/node-raml-validate/jobs/254185210#L314)
Schema:
{
type: {
type: 'string',
enum: ['email', 'password']
}
}
Data:
{
type: 'email'
}
Test result:
I think this may because raml-typesystem use the type property as a type, this is expected.
Any updates on this one? Facing the exact same issue...