-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: upgrade jsf * test: add e2e * chore: switch back to npm version * docs: changelog * test: dry
- Loading branch information
Showing
4 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
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
46 changes: 46 additions & 0 deletions
46
...ess/specs/validate-body-params/dynamic_json_responses-AC-3.dynamic-response.only_oas3.txt
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,46 @@ | ||
====test==== | ||
Prism generates dynamic properties for both required and not-required ones. | ||
====spec==== | ||
openapi: 3.0.2 | ||
paths: | ||
/service: | ||
get: | ||
description: Returns a single resource. | ||
responses: | ||
200: | ||
description: get a resource | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
discriminator: | ||
propertyName: resourceType | ||
oneOf: | ||
- required: | ||
- resourceType | ||
type: object | ||
properties: | ||
resourceType: | ||
type: string | ||
name: | ||
type: string | ||
color: | ||
type: string | ||
- required: | ||
- resourceType | ||
type: object | ||
properties: | ||
resourceType: | ||
type: string | ||
name: | ||
type: string | ||
description: | ||
type: string | ||
====server==== | ||
mock -p 4010 -d | ||
====command==== | ||
curl -i http://localhost:4010/service | ||
====expect-loose==== | ||
HTTP/1.1 200 OK | ||
|
||
{"resourceType": "officia voluptate amet ut","name": "sit"} |
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