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

include request schema in request object #48

Open
dlinnemeyer opened this issue Aug 12, 2015 · 1 comment
Open

include request schema in request object #48

dlinnemeyer opened this issue Aug 12, 2015 · 1 comment

Comments

@dlinnemeyer
Copy link

Any chance we could get the json-schema definition of the request body into the request object for hook functions?

Contextually, I was trying to figure out how to use abao for a quick fuzz-testing hook file. I think with this, and the new beforeEach functionality I saw on master, it'd be pretty simple to throw random data that meets (or violates) the json-schema against the API to see how it reacts (e.g. https://github.com/pateketrueke/json-schema-faker/).

@buraequete
Copy link

buraequete commented Oct 17, 2017

Is there any plan for realizing this feature, I am planning to utilize springmvc-raml-plugin to generate a RAML of my existing product, and use that to test my endpoints, but it generates each json schema separately within request.body definition. I am trying to modify it to create a common schemas map, but it would be nicer if abao was flexible enough to handle such a minor difference in RAML structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants