Skip to content

Add support for loading OpenAPI specs from local files.#11

Open
marioolf wants to merge 1 commit intointruder-io:mainfrom
marioolf:main
Open

Add support for loading OpenAPI specs from local files.#11
marioolf wants to merge 1 commit intointruder-io:mainfrom
marioolf:main

Conversation

@marioolf
Copy link
Copy Markdown

This PR adds the ability to load OpenAPI specifications from local files.

Changes:

  • Updated fetch_swagger_spec function to check if input is a local file.
  • In case it is a file, the tool parses the content.
  • If it is not a file, the tool treats input as URL, maintaining the existing functionality.

Testing:

  • Verified the functionality using sample openapi.yaml local file with valid OpenAPI spec.
  • The tool loaded the file, parsed the spec and processed the endpoints.

This addresses the request described in issue #3

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant