oaspec/codegen/guards

Values

pub fn generate(
  ctx: context.Context,
) -> List(context.GeneratedFile)

Generate guard/validation functions from OpenAPI schemas that have constraints.

pub fn schema_has_validator(
  name: String,
  ctx: context.Context,
) -> Bool

Check whether a named component schema has a composite validator. Used by server/client generators to decide whether to emit guard calls.

Search Document