MCPcopy
hub / github.com/ory/keto / Error

Struct Error

oryx/jsonschemax/error.go:19–31  ·  view source on GitHub ↗

Error represents a schema error.

Source from the content-addressed store, hash-verified

17
18// Error represents a schema error.
19type 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.
34func NewFromSanthoshError(validationError jsonschema.ValidationError) *Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected