Skip to main content

Module openapi

Module openapi 

Source
Expand description

OpenAPI $ref resolution, command extraction, and HTTP execution.

Specs load from file or URL (URL responses cached under $SKIFF_CACHE_DIR). Remote fetches are not SSRF-sandboxed — only pass trusted URLs.

Functions§

execute_openapi
extract_openapi_commands
load_openapi_spec
load_openapi_spec_file
Load an OpenAPI spec from a local JSON/YAML file.
load_openapi_spec_url
Load from URL with caching (uses blocking reqwest for simplicity in sync API).
parse_spec
resolve_base_url
Resolve base URL from –base-url, servers[], or spec URL origin.
resolve_refs