Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data is valid against more than one schema from \'oneOf\ #248

Closed
sarangan12 opened this issue May 14, 2018 · 0 comments
Closed

Data is valid against more than one schema from \'oneOf\ #248

sarangan12 opened this issue May 14, 2018 · 0 comments
Assignees

Comments

@sarangan12
Copy link
Member

Repro Steps:

node cli.js validate-example https://github.com/Azure/azure-rest-api-specs/blob/master/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11/searchservice.json

Sample Error:

......
code: 'ONE_OF_MISSING',
            params: [],
            message: 'Data does not match any schemas from \'oneOf\'',
            path: [ 'fields', '1' ],
            inner: 
             [ { code: 'ONE_OF_MULTIPLE',
                 params: [],
                 message: 'Data is valid against more than one schema from \'oneOf\'',
                 path: [ 'fields', '1', 'analyzer' ] },
               { code: 'INVALID_TYPE',
                 params: [ 'null', 'object' ],
                 message: 'Expected type null but found type object',
                 path: [ 'fields', '1' ] } ] },
          { code: 'ONE_OF_MISSING',
.........

Related to #234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants