Skip to content

Commit 7671aca

Browse files
committed
fix invalid json in tests
1 parent aceccf7 commit 7671aca

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

document_examples_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ func TestExampleCompareDocuments_swagger(t *testing.T) {
378378
func TestDocument_Paths_As_Array(t *testing.T) {
379379
// paths can now be wrapped in an array.
380380
spec := `{
381-
"openapi": "3.1.0",
382-
"paths": [
383-
"/": {
384-
"get": {}
385-
}
386-
]
381+
"openapi": "3.1.0",
382+
"paths": {
383+
"/": {
384+
"get": {}
385+
}
386+
}
387387
}
388388
`
389389
// create a new document from specification bytes

document_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,9 @@ func TestDocument_BuildModelBad(t *testing.T) {
544544
}
545545

546546
func TestDocument_Serialize_JSON_Modified(t *testing.T) {
547-
json := `{ 'openapi': '3.0',
548-
'info': {
549-
'title': 'The magic API'
547+
json := `{ "openapi": "3.0",
548+
"info": {
549+
"title": "The magic API"
550550
}
551551
}
552552
`

0 commit comments

Comments
 (0)