Skip to main content

Crate chio_openapi

Crate chio_openapi 

Source
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§

ChioExtensions
Parsed x-chio-* extension fields from an OpenAPI operation.
DefaultPolicy
Computes the default policy for an operation given its HTTP method and any Chio extension overrides.
GeneratorConfig
Configuration for the manifest generator.
ManifestGenerator
Generates Chio ToolDefinition values from a parsed OpenAPI spec.
OpenApiSpec
A parsed OpenAPI specification.
Operation
A single HTTP operation (e.g. GET /pets).
Parameter
A single parameter definition.
PathItem
A single path entry containing one or more HTTP operations.

Enums§

OpenApiError
Errors produced by the OpenAPI parser and manifest generator.
ParameterLocation
Where a parameter appears in the request.
PolicyDecision
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 ToolDefinition values.

Type Aliases§

Result
Result alias for this crate.