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

Send post data as application/json in request body #16

Open
rgopalakr opened this issue Nov 20, 2018 · 0 comments
Open

Send post data as application/json in request body #16

rgopalakr opened this issue Nov 20, 2018 · 0 comments

Comments

@rgopalakr
Copy link

in my raml file i have

/someresource
post:
description: someresource
body:
application/json:
properties:
prop1:
type: string
example: "foo"
prop2:
type: string
example: "bar"

when raml-js-validator sends POST request i find header always set to Content-Type: application/x-www-form-urlencoded

Does raml-js-validator support application/json? (as content-type) when sending POST request with body

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

1 participant