Skip to content

Commit 56c1f23

Browse files
author
Michael Bonifacio
committed
document expectation if SchemaValidationFailure did not originate from JSON Schema
1 parent b87cec9 commit 56c1f23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

errors/validation_error.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ type SchemaValidationFailure struct {
2626
FieldPath string `json:"fieldPath,omitempty" yaml:"fieldPath,omitempty"`
2727

2828
// KeywordLocation is the relative path to the JsonSchema keyword that failed validation
29+
// This will be empty if the validation failure did not originate from JSON Schema validation
2930
KeywordLocation string `json:"keywordLocation,omitempty" yaml:"keywordLocation,omitempty"`
3031

3132
// AbsoluteKeywordLocation is the absolute path to the validation failure as exposed by the jsonschema library.
33+
// This will be empty if the validation failure did not originate from JSON Schema validation
3234
AbsoluteKeywordLocation string `json:"absoluteKeywordLocation,omitempty" yaml:"absoluteKeywordLocation,omitempty"`
3335

3436
// Line is the line number where the violation occurred. This may a local line number

0 commit comments

Comments
 (0)