Error represents a schema error.
| 17 | |
| 18 | // Error represents a schema error. |
| 19 | type Error struct { |
| 20 | // Type is the error type. |
| 21 | Type ErrorType |
| 22 | |
| 23 | // DocumentPointer is the JSON Pointer in the document. |
| 24 | DocumentPointer string |
| 25 | |
| 26 | // SchemaPointer is the JSON Pointer in the schema. |
| 27 | SchemaPointer string |
| 28 | |
| 29 | // DocumentFieldName is a pointer to the document in dot-notation: fo.bar.baz |
| 30 | DocumentFieldName string |
| 31 | } |
| 32 | |
| 33 | // NewFromSanthoshError converts github.com/santhosh-tekuri/jsonschema.ValidationError to Error. |
| 34 | func NewFromSanthoshError(validationError jsonschema.ValidationError) *Error { |
nothing calls this directly
no outgoing calls
no test coverage detected