-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: SL-2192 stringify examples (#205)
* fix: SL-2191 repaired mock config switch * chore: SL-2191 separated config from components * fix: SL-2191 fixed cli tests * fix: SL-2191 fixed tests * fix: SL-2191 config as a separate parameter for prism * fix: SL-2191 fixed tests * fix: SL-2191 removed unneeded merge of defaultConfig * fix: SL-2192 forced examples to be stringified * fix: SL-2192 specific static examples fixture * fix: SL-2192 trimmed static example
- Loading branch information
1 parent
7621f8a
commit bbf6492
Showing
4 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
packages/http/src/__tests__/fixtures/static-examples.oas2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"swagger": "2.0", | ||
"paths": { | ||
"/todos": { | ||
"get": { | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": {"type": "string"}, | ||
"completed": {"type": ["boolean", "null"]} | ||
}, | ||
"required": ["name", "completed"] | ||
} | ||
}, | ||
"examples": { | ||
"application/json": [ | ||
{"id": 1, "name": "design the thingz", "completed": true} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters