Open ciolo opened 2 years ago
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.
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.