vigoo/openapi_to_moonbit/ir does not have a README file
pub(all) struct ApiChange {
severity : ChangeSeverity
kind : String
target : String
message : String
} derive(Eq, Debug)pub(all) enum BodyIR {
Json(FieldType, content_type~ : String, required~ : Bool, docs~ : Array[String])
Multipart(Array[MultipartPartIR], required~ : Bool, docs~ : Array[String])
FormUrlEncoded(Array[MultipartPartIR], required~ : Bool, docs~ : Array[String])
Text(content_type~ : String, required~ : Bool, docs~ : Array[String])
Binary(content_type~ : String, required~ : Bool, docs~ : Array[String])
NoBody
} derive(Eq, Debug)pub(all) struct HeaderIR {
wire : String
name : String
type_ : FieldType
style : ParameterStyle
explode : Bool
required : Bool
deprecated : Bool
docs : Array[String]
} derive(Eq, Debug)pub struct IrModel {
// private fields
}pub(all) struct OpIR {
operation_id : String
method_name : String
http_method : HttpMethod
path : String
group : String
tags : Array[String]
summary : String?
description : String?
deprecated : Bool
params : Array[ParamIR]
body : BodyIR
responses : Array[ResponseIR]
security : Array[SecurityAlternative]
servers : Array[ServerIR]
docs : Array[String]
} derive(Eq, Debug)pub(all) struct ParamIR {
wire : String
name : String
location : ParameterLocation
style : ParameterStyle
explode : Bool
type_ : FieldType
presence : Presence
default : Node?
deprecated : Bool
constraints : SchemaConstraints
docs : Array[String]
} derive(Eq, Debug)pub(all) enum ResponseBodyKind {
Empty
Json(FieldType)
Binary
Text
Stream(StreamKind)
Other(FieldType?)
} derive(Eq, Debug)pub(all) struct ResponseIR {
status : StatusCode
content_type : String
body_kind : ResponseBodyKind
type_ : FieldType?
headers : Array[HeaderIR]
docs : Array[String]
} derive(Eq, Debug)pub(all) struct SecuritySchemeIR {
name : String
type_ : SecuritySchemeType
description : String?
} derive(Eq, Debug)pub(all) struct ServerIR {
url : String
description : String?
variables : Array[ServerVariableIR]
} derive(Eq, Debug)pub(all) enum TypeDef {
Record(RecordDef)
TaggedEnum(TaggedEnumDef)
StringEnum(StringEnumDef)
UntaggedEnum(UntaggedEnumDef)
Alias(AliasDef)
} derive(Eq, Debug)pub(all) struct VariantIR {
name : String
wire_tag : String
payload : VariantPayload
docs : Array[String]
} derive(Eq, Debug)Install
Download zipGeneral-purpose OpenAPI 3.0 & 3.1 to MoonBit HTTP, streaming, and WebSocket client generator (sans-IO library + native CLI).