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

Parsing JSON response from "application/vnd.api+json" content type responses #61

Open
jaimeiniesta opened this issue Nov 2, 2021 · 1 comment

Comments

@jaimeiniesta
Copy link

jaimeiniesta commented Nov 2, 2021

Hi, I have a JSON API implemented with ja_serializer that uses the content-type "application/vnd.api+json" as in the JSON:API spec.

Is there a way to make this work with phoenix_integration so I can use asserts like assert_response(json: "...")?

Currently this fails as it expects a content type of application/json.

@boydm
Copy link
Owner

boydm commented Jan 24, 2022

Hmmm. Could add a new content type. How about
assert_response(json_api: "...")?

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

No branches or pull requests

2 participants