Canonical Client IR, validation, naming, and type mapping for oas2moon.
Dependencies
pub struct ApiIr {
module_name : String
title : String
version : String
servers : Array[String]
auth_schemes : Array[AuthSchemeIr]
models : Array[ModelIr]
operations : Array[OperationIr]
} derive(Eq, Debug)pub struct OperationIr {
operation_id : String
fn_name : String
http_method : HttpMethod
path : String
tags : Array[String]
parameters : Array[ParameterIr]
request_body : RequestBodyIr?
body_name : String?
success_responses : Array[ResponseIr]
error_responses : Array[ResponseIr]
response_strategy : ResponseStrategy
security : Array[String]
source : SourceLocation
} derive(Eq, Debug)pub struct ParameterIr {
name : String
wire_name : String
location : ParamLocation
required : Bool
nullable : Bool
style : SerializationStyle
explode : Bool
type_ref : TypeRef
source : SourceLocation
} derive(Eq, Debug)pub enum ResponseStrategy {
SingleResult(TypeRef)
UnitResult
ResponseEnum(Array[ResponseVariant])
NoContent
UnsupportedMediaType(String)
} derive(Eq, Debug)fn operation_fn_name(operation_id : String) -> Stringfn ref_target(ref_path : String) -> StringInstall
Download zipCanonical Client IR, validation, naming, and type mapping for oas2moon.
Dependencies