Skip to main content

Module spec_parser

Module spec_parser 

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

AsyncApiParseResult
Result of parsing an AsyncAPI spec file.
SpecChannel
A single parsed channel operation from an AsyncAPI spec.
SpecEndpoint
A single parsed endpoint from an OpenAPI/Swagger spec.
SpecParseResult
Result of parsing an OpenAPI/Swagger spec file.

Enums§

SpecFileResult
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.