Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/dynamic response fields #623

Merged
merged 7 commits into from
Sep 17, 2019
Merged

Fix/dynamic response fields #623

merged 7 commits into from
Sep 17, 2019

Conversation

XVincentX
Copy link
Contributor

@XVincentX XVincentX commented Sep 17, 2019

Closes #570

See #570 and #605

Two notes:

  1. The author has published an updated rc of the library so we can avoid grabbing from master directly and start pull out back from npm directly
  2. Since there's no Prism code change I've removed the unit tests, I guess the e2e is all we really need here.

@XVincentX XVincentX marked this pull request as ready for review September 17, 2019 14:30
Copy link
Contributor

@lag-of-death lag-of-death left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@XVincentX XVincentX merged commit ba81061 into master Sep 17, 2019
@XVincentX XVincentX deleted the fix/dynamic-response-fields branch September 17, 2019 14:39
XVincentX added a commit that referenced this pull request Sep 17, 2019
* chore: upgrade jsf

* test: add e2e

* chore: switch back to npm version

* docs: changelog

* test: dry
XVincentX pushed a commit that referenced this pull request Sep 23, 2019
* fix: allow empty responses

* chore: add changelog line

* feat: answer with an empty response

* Fix/dynamic response fields (#623)

* chore: upgrade jsf

* test: add e2e

* chore: switch back to npm version

* docs: changelog

* test: dry

* refactor: use options and closures

* refactor: use fromOption

* refactor: do not pass logger to whenNoContent

* refactor: rename whenNoContent

* test: fix

* test: make the tests clearer

* feat: responding with empty payloads - wip

* refactor: address feedback

* refactor: rm direct import of fromNullable

* refactor: some cleanup

* refactor: use info instead of warn

* refactor: adjust to mater changes

* chore: add todo

* Update packages/http/src/mocker/negotiator/InternalHelpers.ts

Co-Authored-By: Vincenzo Chianese <vincenz.chianese@icloud.com>

* refactor: rename warnMsg to outputNoContentFoundMessage

* refactor: address some feedback

* refactor: do not check if 400/422 response

* refactor: simplify logic

* refactor: renaming

* refactor: change the way of casting

* test: adjust tests descriptions

* refactor: put mediaTypes in pipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prism mock dynamic response generation missing required fields on oneOf/allOf schemas
2 participants