- edited description
Add validation support to hal+json content type
Hi,
I've been developing hateos compliant apis with spring boot and I'm trying to write validate these apis using swagger-request-validator. Currently, responses are only validated when content type header of the response matches exactly with application/json. On the http apis my teams is developing, spring sets the content type header as application/hal+json hence the validation won't happen and it's skipped.
As the hateos is a superset of json I believe the validation should run just fine in the case too.
I'll submit a pull request today. How long would it take to get approval and publishing of a new version with this change? This is very critical to my team and is a top priority so they're waiting for an estimate.
Comments (13)
-
reporter -
reporter - changed status to open
-
reporter Hi,
I pushed changes for adding hal+json support on my own fork but I can't submit a pull request. Can you review it and let me know what is the next steps?
-
Hi Fabio - thanks for the contribution!
I think if you push your changes to a branch other than master you should then be able to raise a PR from your branch to master of the parent repository.
Once the PR is open I'll review the changes in more detail. I'll also need to confirm that you've signed the CLA (see the README for details).
Thanks!
-
reporter I think I'd tried that originally but I was not able to push to the remote. Let me check again.
-
reporter yeah, so I get back 'remote: Unauthorized' when I try to push to a branch.
This is what've been trying:
git checkout -b 127-haljson-support git add . <= to add the code changes git commit -m "Issue 127: Added hal+json content type support" git push --set-upstream origin 127-haljson-support
output of last command
remote: Unauthorized fatal: Authentication failed for 'https://<my-user>@bitbucket.org/atlassian/swagger-request-validator.git/'
-
reporter About the CLA, I already signed.
-
Sorry - I meant push a branch in your fork, then create a PR from that branch back to the master branch of the original repo.
-
reporter great. Thanks for the clarification. Doing it now
-
reporter Done. it's ready to be reviewed!
Thanks!
-
reporter -
reporter - changed status to resolved
-
Available in v1.4.6
- Log in to comment