Expand description
OpenAPI 3.x spec parser and Chio ToolManifest generator.
This crate parses OpenAPI 3.0 and 3.1 specifications (both YAML and JSON)
and generates Chio ToolManifest values where each route becomes a
ToolDefinition with input schema derived from path, query, and body
parameters.
Structs§
- Chio
Extensions - Parsed
x-chio-*extension fields from an OpenAPI operation. - Default
Policy - Computes the default policy for an operation given its HTTP method and any Chio extension overrides.
- Generator
Config - Configuration for the manifest generator.
- Manifest
Generator - Generates Chio
ToolDefinitionvalues from a parsed OpenAPI spec. - Open
ApiSpec - A parsed OpenAPI specification.
- Operation
- A single HTTP operation (e.g. GET /pets).
- Parameter
- A single parameter definition.
- Path
Item - A single path entry containing one or more HTTP operations.
Enums§
- Open
ApiError - Errors produced by the OpenAPI parser and manifest generator.
- Parameter
Location - Where a parameter appears in the request.
- Policy
Decision - The policy decision for a given operation.
- Sensitivity
- Sensitivity classification for a route. Used by the guard pipeline to decide logging level and approval requirements.
Functions§
- tools_
from_ spec - Convenience function: parse an OpenAPI spec from a string (auto-detecting
JSON vs YAML) and generate a list of
ToolDefinitionvalues.
Type Aliases§
- Result
- Result alias for this crate.