Skip to main contentModule openapi
Source - OpenApiFilters
- Filter configuration derived from Provider fields.
- OpenApiToolDef
- An extracted operation from an OpenAPI spec, before conversion to ATI Tool.
- OperationSummary
- Summarize operations in a spec for the
inspect command.
- OpenApiError
- Errors specific to OpenAPI spec loading.
- build_input_schema_with_locations
- Build a unified input schema that preserves parameter locations.
This is the version called from extract_tools() with full context.
- detect_auth
- Detect auth scheme from an OpenAPI spec’s securitySchemes.
Returns (auth_type_str, extra_fields) for TOML manifest generation.
- extract_tools
- Extract tool definitions from an OpenAPI spec, applying filters.
- list_operations
- List all operations in an OpenAPI spec (unfiltered) for inspection.
- load_and_register
- Load an OpenAPI spec and produce ATI Tool definitions for a provider.
Called during ManifestRegistry::load() for handler = “openapi”.
- load_spec
- Load an OpenAPI spec from a file path or URL.
Supports JSON and YAML. If
spec_ref is a relative path, resolves against specs_dir. - parse_spec
- Parse an OpenAPI spec from a string (JSON or YAML).
- spec_base_url
- Get the base URL from the spec’s servers list.
- to_ati_tool
- Convert an extracted OpenAPI tool def into an ATI Tool struct.