oas/generator/lift
Types
pub type Fields {
Fields(
named: List(#(String, #(Schema(Int), Bool))),
additional: option.Option(Schema(Int)),
required: List(String),
)
}
Constructors
-
Fields( named: List(#(String, #(Schema(Int), Bool))), additional: option.Option(Schema(Int)), required: List(String), )
pub type Primitive {
Boolean
Integer
Number
String
Null
Always
Never
}
Constructors
-
Boolean -
Integer -
Number -
String -
Null -
Always -
Never
Values
pub fn do_lift(
schema: json_schema.Ref(json_schema.Schema),
acc: List(Fields),
) -> #(Schema(Fields), Bool, List(Fields))