File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -378,12 +378,12 @@ func TestExampleCompareDocuments_swagger(t *testing.T) {
378
378
func TestDocument_Paths_As_Array (t * testing.T ) {
379
379
// paths can now be wrapped in an array.
380
380
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
+ }
387
387
}
388
388
`
389
389
// create a new document from specification bytes
Original file line number Diff line number Diff line change @@ -544,9 +544,9 @@ func TestDocument_BuildModelBad(t *testing.T) {
544
544
}
545
545
546
546
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"
550
550
}
551
551
}
552
552
`
You can’t perform that action at this time.
0 commit comments