Module client_generator

Module client_generator 

Source
Expand description

Client Generator Plugin Interface

This module defines the traits and types for plugins that generate framework-specific mock clients from OpenAPI specifications.

Modules§

helpers
Helper functions for client generation

Structs§

ApiInfo
API information
ClientGenerationResult
Result of client generation
ClientGeneratorConfig
Client generator configuration
ClientGeneratorPluginConfig
Client generator plugin configuration
Components
Components (schemas, responses, etc.)
GeneratedFile
Generated file
GenerationMetadata
Generation metadata
Header
Response header
MediaType
Media type
OpenApiSpec
OpenAPI specification data structure
Operation
API operation
Parameter
Request parameter
PathItem
Path item containing operations Note: We use #[serde(flatten)] for operations to handle HTTP methods (get, post, etc.) as dynamic keys, while explicitly handling other OpenAPI PathItem fields
RequestBody
Request body
Response
API response Can be either a full Response object or a $ref to a component
Schema
JSON Schema
Server
Server information

Traits§

ClientGeneratorPlugin
Client generator plugin trait for generating framework-specific mock clients