oaspec/codegen/ir_build

Values

pub fn build_types_module(ctx: context.Context) -> ir.Module

Build an IR Module for the types.gleam file from component schemas.

pub fn is_internal_schema(schema_ref: schema.SchemaRef) -> Bool

Check if a schema ref is marked as internal (allOf helper type).

pub fn sorted_entries(
  d: dict.Dict(String, v),
) -> List(#(String, v))

Sort dict entries by key for deterministic output ordering. Gleam Dict does not guarantee iteration order, so all codegen paths that produce output from dict entries must sort first.

Search Document