oaspec/openapi/capability_check

Values

pub fn check(
  spec: spec.OpenApiSpec(spec.Resolved),
) -> List(diagnostic.Diagnostic)

Run capability checks on a resolved spec. Returns errors for unsupported features and warnings for parsed-but-unused features.

pub fn check_preserved(
  ctx: context.Context,
) -> List(diagnostic.Diagnostic)

Check for parsed-but-unused AST features, emitting warnings. This is the single source of truth for “parsed but not generated” diagnostics. Requires Context because some checks iterate over resolved operations.

Search Document