Support YAML files for OpenAPI Specs
Problem
According to the OpenAPI specification a openapi definition can be defined in yaml or json. However API fuzzing only accepts a json format.
The swagger online editor can easily convert from json to yaml, but defaults to YAML. Users may prefer to work in YAML as a result.
Proposal
Allow a user to specify the specification in YAML or JSON format.
Tasks:
-
Verify NSwag
library supports yaml -
Update validation performed by worker-entry
to support yaml for OpenAPI specifications -
Update runner
as needed to support yaml for OpenAPI -
Testing -
Add unit tests for runner
in c#- OpenAPI YAML for v2.0, v3.0
-
Add integration test for worker-entry
that uses yaml- OpenAPI YAML for v2.0, v3.0 (using UTF-8-BOM)
-
Add e2e test that uses yaml
-
-
Publish new container -
Update documentation to reflect either format is supported. MR !61751 (merged) -
API Fuzzing -
DAST API
-
MR !508
Edited by Michael Eddington