Skip to content

Commit c17d473

Browse files
committed
fixed bad JSON in test
1 parent 41b2511 commit c17d473

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

openapi_vocabulary/vocabulary_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -701,14 +701,14 @@ func TestDiscriminatorValidation_PropertyPresent(t *testing.T) {
701701

702702
func TestDiscriminatorValidation_NonObjectValue(t *testing.T) {
703703
schemaJSON := `{
704-
"type": "object",
705-
"discriminator": {
706-
"propertyName": "type",
707-
"mapping": {
708-
"dog": "#/components/schemas/Dog",
709-
}
710-
}
711-
}`
704+
"type": "object",
705+
"discriminator": {
706+
"propertyName": "type",
707+
"mapping": {
708+
"dog": "#/components/schemas/Dog"
709+
}
710+
}
711+
}`
712712

713713
schema, err := jsonschema.UnmarshalJSON(strings.NewReader(schemaJSON))
714714
assert.NoError(t, err)

0 commit comments

Comments
 (0)