Expand description
OpenAPI and AsyncAPI spec file parsing.
Parses OpenAPI (2.0/3.x) and AsyncAPI (2.x/3.0) specification files to extract
API endpoints, channels, schemas, and metadata. Supports both JSON and YAML formats.
Discovered endpoints are normalized via api_surface::normalize_path_pattern().
Structs§
- Async
ApiParse Result - Result of parsing an AsyncAPI spec file.
- Spec
Channel - A single parsed channel operation from an AsyncAPI spec.
- Spec
Endpoint - A single parsed endpoint from an OpenAPI/Swagger spec.
- Spec
Parse Result - Result of parsing an OpenAPI/Swagger spec file.
Enums§
- Spec
File Result - A parsed spec file: either OpenAPI or AsyncAPI.
Functions§
- parse_
asyncapi - Parse an AsyncAPI (2.x / 3.0) spec file.
- parse_
openapi - Parse an OpenAPI (2.0 Swagger / 3.x) spec file.
- scan_
api_ specs - Scan a directory for API spec files (OpenAPI / AsyncAPI) and parse them.