Skip to main content

Module spec

Module spec 

Source
Expand description

OpenAPI specification validation and transformation module

This module separates the concerns of validating and transforming OpenAPI specifications into distinct, testable components following the Single Responsibility Principle.

Re-exports§

pub use parser::parse_openapi;
pub use transformer::SpecTransformer;
pub use validator::SpecValidator;

Modules§

parser
transformer
validator

Constants§

MAX_REFERENCE_DEPTH
Maximum depth for resolving parameter references to prevent stack overflow

Functions§

http_methods_iter
Creates an iterator over all HTTP methods and their operations in a PathItem
resolve_parameter_reference
Resolves a parameter reference to its actual parameter definition
resolve_schema_reference
Resolves a schema reference to its actual schema definition

Type Aliases§

HttpMethodsIter
A helper type to iterate over all HTTP methods in a PathItem