Enable API Fuzzing and DAST API to generate sample data for XML from OpenAPI spec
Problem to solve
At this time our API Fuzzing and DAST API try to generate sample data when the OpenAPI specification does not provide enough sample data. The generated data is limited to specific content types:
application/x-www-form-urlencodedmultipart/form-dataapplication/json
The problem to solve is to enable the API Fuzz and DAST to generate content for commonly used Content-Type:
application/xml
Proposal
-
Enable support in OpenAPI reader to produce application/xml -
Add tests -
Update flask target. -
Add Unit test generating operations where content type is application/xml (OAS 2.0, OAS 3.0) -
Add Integration test using operations where content type is application/xml (OAS 2.0, OAS 3.0) -
Add e2e test (OAS 2.0, OAS 3.0)
-
Links
- Code sample of data generation Swagger UI
src/core/plugins/samples/fn.js
Edited by Herber Madrigal