atproto_sdl/printer/methods

Renders query/procedure/subscription defs: params, the accepts/ : body clauses, and the throws errors clause. A body’s schema is None for a raw (non-JSON) body, e.g. an uploaded Blob; that is the one case a body clause prints a bare scalar name instead of a ref/union/inline-object, and it’s why the default encoding flips to */* (mirrors lower’s is_raw handling exactly, inverted).

Values

pub fn print_procedure(
  name: String,
  main_attrs: List(String),
  p: ast.ProcedureDef,
) -> String
pub fn print_query(
  name: String,
  main_attrs: List(String),
  q: ast.QueryDef,
) -> String
pub fn print_subscription(
  name: String,
  main_attrs: List(String),
  s: ast.SubscriptionDef,
) -> String
Search Document