Skip to content

Commit 3d9224f

Browse files
author
Michael Bonifacio
committed
add ReferenceExample back
1 parent 56c1f23 commit 3d9224f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

errors/validation_error.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ type SchemaValidationFailure struct {
4949
// ReferenceObject is the object that failed schema validation
5050
ReferenceObject string `json:"referenceObject,omitempty" yaml:"referenceObject,omitempty"`
5151

52+
// ReferenceExample is an example object generated from the schema that was referenced in the validation failure.
53+
ReferenceExample string `json:"referenceExample,omitempty" yaml:"referenceExample,omitempty"
54+
5255
// The original jsonschema.ValidationError object, if the schema failure originated from the jsonschema library.
5356
OriginalJsonSchemaError *jsonschema.ValidationError `json:"-" yaml:"-"`
5457

0 commit comments

Comments
 (0)