Open nickcarenza opened 9 years ago
This would be convenient instead of having to use the dot-separated value returned by the Field() method of ResultErrorFields.
Field()
ResultErrorFields
example:
res, err := gojsonschema.Validate(schemaLoader, jsonLoader) for _, resErr := range res.Errors() { resErr.Field() // -> search.name resErr.JSONPointer() // -> /search/name }
If this is a good idea, I would be happy to implement the feature.
It's a good idea and the error is compliant with jsonapi.org when building the Error object's source field.
This would be convenient instead of having to use the dot-separated value returned by the
Field()
method ofResultErrorFields
.example:
If this is a good idea, I would be happy to implement the feature.