KissPeter / APIFuzzer

Fuzz test your application using your OpenAPI or Swagger API definition without coding
GNU General Public License v3.0
416 stars 65 forks source link

Copy/paste error in compile_base_url() #42

Closed ngregoire closed 2 years ago

ngregoire commented 3 years ago

Describe the bug

Destination URL can't be extracted from OpenAPI definition files, because function compile_base_url() calls _compile_base_url_for_swagger() in all situations (probably a copy/paste error) https://github.com/KissPeter/APIFuzzer/blob/043ccd2b464fea178db58d2d7a235eead06b72e3/apifuzzer/openapi_template_generator.py#L260

Executed command

APIFuzzer --src_url https://petstore3.swagger.io/api/v3/openapi.json

APIFuzzer debug log

Unexpected exception happened during fuzz test preparation: 'schemes'. Feel free to report the issue

Related API definition

Publicly available at https://petstore3.swagger.io/api/v3/openapi.json

Software environment (please complete the following information):