Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

[RAML 1.0] Validate incorrectly if property name is type - #7

Open
jhen0409 wants to merge 1 commit into
mulesoft-labs:developfrom
jhen0409:master
Open

jhen0409 wants to merge 1 commit into
mulesoft-labs:developfrom
jhen0409:master

Conversation

@jhen0409

@jhen0409 jhen0409 commented Jul 16, 2017

Copy link
Copy Markdown

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.

@pmuens

pmuens commented Sep 21, 2018

Copy link
Copy Markdown

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

@jstoiko
jstoiko changed the base branch from master to develop July 9, 2019 22:41
@postatum postatum added the bug label Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants