Load Swagger/OpenAPI Spec
swagger_load_specLoad and parse Swagger 2.0 or OpenAPI 3.x specs from a URL. Supports JSON and YAML formats, caching locally for use by other tools.
Instructions
Load and parse a Swagger 2.0 or OpenAPI 3.x specification from a URL. Supports both JSON and YAML formats. The loaded spec is parsed, cached to local JSON files, and used by all subsequent tools. Must be called first before using other tools (unless SWAGGER_URL env var is set).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the Swagger/OpenAPI spec (JSON or YAML) | |
| headers | No | Optional HTTP headers for fetching the spec (e.g. authorization) |