node-raml-validate icon indicating copy to clipboard operation
node-raml-validate copied to clipboard

[RAML 1.0] Validate incorrectly if property name is `type`

Open jhen0409 opened this issue 8 years ago • 1 comments

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:

2017-07-17 12 45 49

I think this may because raml-typesystem use the type property as a type, this is expected.

jhen0409 avatar Jul 16 '17 16:07 jhen0409

Any updates on this one? Facing the exact same issue...

pmuens avatar Sep 21 '18 08:09 pmuens