vigoo/openapi_to_moonbit/spec does not have a README file
pub struct Components {
schemas : Array[(String, RefOr[Schema])]
security_schemes : Array[(String, RefOr[SecurityScheme])]
parameters : Array[(String, RefOr[Parameter])]
request_bodies : Array[(String, RefOr[RequestBody])]
responses : Array[(String, RefOr[Response])]
headers : Array[(String, RefOr[Header])]
path_items : Array[(String, RefOr[PathItem])]
other_sections : Array[(String, Node)]
} derive(Eq, Debug)fn Diagnostics::error(self : Diagnostics, code : String, pointer : String, message : String) -> Unitfn Diagnostics::unsupported(self : Diagnostics, code : String, pointer : String, message : String) -> Unitfn Diagnostics::warning(self : Diagnostics, code : String, pointer : String, message : String) -> Unitpub(all) enum Node {
Null
Bool(Bool)
Number(String)
Str(String)
Array(Array[Node])
Object(ObjectNode)
} derive(Eq, Debug)pub struct OpenApiDoc {
openapi : String
json_schema_dialect : String?
info : Info
servers : Array[Server]
paths : Array[(String, PathItem)]
webhooks : Array[(String, PathItem)]
components : Components?
security : Array[SecurityAlternative]
tags : Array[Tag]
extras : Array[(String, Node)]
} derive(Eq, Debug)pub struct Operation {
operation_id : String
summary : String?
description : String?
tags : Array[String]
deprecated : Bool
servers : Array[Server]
parameters : Array[RefOr[Parameter]]
request_body : RefOr[RequestBody]?
responses : Responses
security : Array[SecurityAlternative]?
extras : Array[(String, Node)]
} derive(Eq, Debug)pub struct Parameter {
name : String
location : ParameterLocation
required : Bool
deprecated : Bool
description : String?
style : (ParameterStyle, Bool)
schema : RefOr[Schema]?
content : Array[(String, MediaType)]
extras : Array[(String, Node)]
} derive(Eq, Debug)pub struct Resolver {
// private fields
}pub struct Schema {
type_ : String?
types : Array[String]
format : String?
title : String?
description : String?
enum_ : Array[Node]?
const_ : Node?
items : RefOr[Schema]?
properties : Array[(String, RefOr[Schema])]
required : Array[String]
additional_properties : AdditionalProperties?
all_of : Array[RefOr[Schema]]?
one_of : Array[RefOr[Schema]]?
any_of : Array[RefOr[Schema]]?
not : RefOr[Schema]?
nullable : Bool
read_only : Bool
write_only : Bool
constraints : SchemaConstraints
discriminator : Discriminator?
default : Node?
example : Node?
examples : Array[Node]
deprecated : Bool
extras : Array[(String, Node)]
} derive(Eq, Debug)pub(all) struct SchemaConstraints {
minimum : String?
maximum : String?
exclusive_minimum : String?
exclusive_maximum : String?
multiple_of : String?
min_length : Int?
max_length : Int?
pattern : String?
min_items : Int?
max_items : Int?
unique_items : Bool
min_properties : Int?
max_properties : Int?
} derive(Eq, Debug)pub struct SecurityScheme {
type_ : SecuritySchemeType
description : String?
extras : Array[(String, Node)]
} derive(Eq, Debug)pub(all) enum SecuritySchemeType {
Http(scheme~ : String, bearer_format~ : String?)
ApiKey(location~ : ParameterLocation, name~ : String)
Oauth2(flows~ : OAuthFlows)
OpenIdConnect(url~ : String)
Other(String)
} derive(Eq, Debug)fn bundle_external_refs(root : Node, base_uri? : String, load_doc : (String) -> String raise SpecError, diags : Diagnostics) -> Nodefn decode_fragment_segment(seg : StringView) -> String?fn decode_security_scheme(node : Node, pointer : String, diags : Diagnostics) -> RefOr[SecurityScheme]?fn json_pointer_escape(segment : String) -> Stringfn json_pointer_unescape(segment : StringView) -> Stringfn pointer_join(pointer : String, segment : String) -> StringInstall
Download zipGeneral-purpose OpenAPI 3.0 & 3.1 to MoonBit HTTP, streaming, and WebSocket client generator (sans-IO library + native CLI).