MoonBit SDK emitter for the oas2moon OpenAPI client generator.
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 : String
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_pointer : String
} derive(Eq, Debug)pub struct ParameterIr {
name : String
wire_name : String
location : ParamLocation
type_ref : TypeRef
required : Bool
nullable : Bool
presence : String
} derive(Eq, Debug)pub enum ResponseStrategy {
SingleResult(TypeRef)
UnitResult
ResponseEnum(Array[ResponseVariant])
NoContent
UnsupportedMediaType(String)
} derive(Eq, Debug)Install
Download zipMoonBit SDK emitter for the oas2moon OpenAPI client generator.
Dependencies