oas/generator/lift

Types

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

Constructors

  • Fields(
      named: List(#(String, #(Schema(String), Bool))),
      additional: option.Option(Schema(String)),
      required: List(String),
    )
pub type Lifted =
  Schema(String)
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(Schema(String))
  Tuple(List(Schema(String)))
  Compound(t)
  Dictionary(Schema(String))
  Unsupported
}

Constructors

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

Values

pub fn do_lift(
  schema: json_schema.Ref(json_schema.Schema),
  acc: List(#(String, Fields)),
) -> #(Schema(Fields), Bool, List(#(String, Fields)))
Search Document