oas/generator/lift

Types

pub type Fields {
  Fields(
    named: List(#(String, #(Lifted, Bool))),
    additional: Option(Lifted),
    required: List(String),
  )
}

Constructors

  • Fields(
      named: List(#(String, #(Lifted, Bool))),
      additional: Option(Lifted),
      required: List(String),
    )
pub type Lifted =
  Schema(Int)
pub type Primitive {
  Boolean
  Integer
  Number
  String
  Null
  Always
  Never
}

Constructors

  • Boolean
  • Integer
  • Number
  • String
  • Null
  • Always
  • Never
pub type Schema(t) {
  Named(String)
  Primitive(Primitive)
  Array(Lifted)
  Tuple(List(Lifted))
  Compound(t)
  Dictionary(Lifted)
  Unsupported
}

Constructors

  • Named(String)
  • Primitive(Primitive)
  • Array(Lifted)
  • Tuple(List(Lifted))
  • Compound(t)
  • Dictionary(Lifted)
  • Unsupported
pub type Top =
  Schema(Fields)

Values

pub fn do_lift(
  schema: Ref(Schema),
  acc: List(Fields),
) -> #(oas/generator/lift.Schema(Fields), Bool, List(Fields))
Search Document