atproto_sdl/lower/methods

Lowers query/procedure/subscription defs: params (via lower/fields), the accepts/: body clauses, the throws errors clause, and the body-schema position (ref / inline object / union / bare Blob-Bytes for a raw body, which is the one case Body.schema stays None and the default encoding flips to */*).

Values

pub fn lower_procedure(
  docs: option.Option(String),
  params: List(tree.Field),
  accepts: option.Option(tree.BodyClause),
  output: option.Option(tree.BodyClause),
  errors: tree.ErrorsClause,
  ctx: scope.Ctx,
) -> Result(ast.PrimaryDef, error.ParseError)
pub fn lower_query(
  docs: option.Option(String),
  params: List(tree.Field),
  output: option.Option(tree.BodyClause),
  errors: tree.ErrorsClause,
  ctx: scope.Ctx,
) -> Result(ast.PrimaryDef, error.ParseError)
pub fn lower_subscription(
  docs: option.Option(String),
  params: List(tree.Field),
  message: option.Option(tree.BodyClause),
  errors: tree.ErrorsClause,
  ctx: scope.Ctx,
) -> Result(ast.PrimaryDef, error.ParseError)
Search Document