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) {
378378func 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
Original file line number Diff line number Diff line change @@ -544,9 +544,9 @@ func TestDocument_BuildModelBad(t *testing.T) {
544544}
545545
546546func 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`
You can’t perform that action at this time.
0 commit comments