cybertk / abao

REST API automated testing tool based on RAML
MIT License
354 stars 59 forks source link

include request schema in request object #48

Open dlinnemeyer opened 9 years ago

dlinnemeyer commented 9 years ago

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 commented 7 years ago

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