We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, Maybe I got the configuration wrong, but following the examples in the README the validation doesn't work correctly. In detail:
documentLoader := gojsonschema.NewGoLoader(feed) schemaLoader := gojsonschema.NewGoLoader(v.Schema) result, err := gojsonschema.Validate(schemaLoader, documentLoader)
feed and v.Schema they could be anything and validation returns no errors. Why? Can you help me plz?
feed
v.Schema
Thanks.
The text was updated successfully, but these errors were encountered:
I'm also experiencing something like this. In my case I'm doing it like this:
sl := gojsonschema.NewSchemaLoader() sl.Validate = true if err := sl.AddSchemas(gojsonschema.NewStringLoader(string(jsonStr))); err != nil { return err }
I was expecting that this would return an error if someone would use for example type: foobar in their jsonschema. But nothing happens...no errors.
type: foobar
Sorry, something went wrong.
No branches or pull requests
Hi,
Maybe I got the configuration wrong, but following the examples in the README the validation doesn't work correctly. In detail:
feed
andv.Schema
they could be anything and validation returns no errors. Why? Can you help me plz?Thanks.
The text was updated successfully, but these errors were encountered: