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

Can't see errors with referenced schemas #22

Open
blakeembrey opened this issue Feb 11, 2015 · 11 comments
Open

Can't see errors with referenced schemas #22

blakeembrey opened this issue Feb 11, 2015 · 11 comments

Comments

@blakeembrey
Copy link

I'm working with a complex JSON schema but it's impossible to know what isn't validating since I just get referenced schema does not match with https://github.com/mulesoft-labs/raml-object-standard/blob/master/schema.json#L8-L46. It should be valid since it's passing using other validation libraries.

@fride
Copy link

fride commented Mar 14, 2015

I do have the exact same error message, without a line number. ;)

@imjul1an
Copy link

Hi guys,

I have a little bit different issue with external schema validation:

whenever I use external schema referenced in the main schema(i.e. $ref: '#ext') I do not get any errors at all, what is most important I'm gettin success validation result.

here is the code: https://gist.github.com/julianusti/6fb4d2d4e41f2c5f9e68

@adrai
Copy link

adrai commented Mar 23, 2015

any news?

@ramiel
Copy link

ramiel commented Mar 26, 2015

Same here. No information on referenced schemas.

@ahmadnassri
Copy link

would certainly be useful to get info on the referenced schema ... 👍

@OllieJennings
Copy link

+1, getting errors with reference schemas, no idea why its not working

@chrahunt
Copy link
Collaborator

@julianusti the last line of the schema you linked has an error. The name of the referenced schema #ext has to be the key for the object that you're passing in for schemas. This should work for you:

var validate = validator(schema, {
  schemas: {
    ext: ext
  },
  verbose: true,
  greedy: true
});

@alandotcom
Copy link

What's the status on this and the referenced PRs?

@tauren
Copy link

tauren commented Aug 5, 2015

👍 This bit me too

@daniloarcidiacono
Copy link

+1

@pankleks
Copy link

Hello, any update on this, any error I get from schema validation says: referenced schema does not match

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

No branches or pull requests