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/sl 2192/stringify examples #205

Merged
merged 15 commits into from
Apr 2, 2019

Conversation

karol-maciaszek
Copy link
Contributor

@karol-maciaszek karol-maciaszek commented Mar 28, 2019

Issue: https://stoplightio.atlassian.net/browse/SL-2192

The cause of freeze was that fastify received object as a response body instead of string. This PR enforces response body to be stringified.

# Conflicts:
#	packages/core/src/factory.ts
#	packages/core/src/utils/__tests__/__snapshots__/configMergerFactory.spec.ts.snap
#	packages/core/src/utils/__tests__/configMergerFactory.spec.ts
#	packages/core/src/utils/configMergerFactory.ts
#	packages/core/src/utils/resolveConfig.ts
#	packages/http-server/src/getHttpConfigFromRequest.ts
Copy link
Contributor

@XVincentX XVincentX left a comment

Choose a reason for hiding this comment

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

I do not think we need a new whole fixture; the functional snapshot changes look enough to me.

@karol-maciaszek
Copy link
Contributor Author

I do not think we need a new whole fixture; the functional snapshot changes look enough to me.

  • it’s an fixture with static examples which caused actual problem
  • I think it may be handy to have two different fixtures - pets and todos
  • having that I could prepare a test which fails when bug exists and passes when it's fixed

Copy link
Contributor

@XVincentX XVincentX left a comment

Choose a reason for hiding this comment

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

This seems way more reasonable! Thanks!

@karol-maciaszek
Copy link
Contributor Author

This seems way more reasonable! Thanks!

You right :) Thanks!

@karol-maciaszek karol-maciaszek merged commit bbf6492 into develop Apr 2, 2019
@karol-maciaszek karol-maciaszek deleted the fix/SL-2192/stringify-examples branch April 2, 2019 09:41
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.

2 participants