Skip to main content
.specs/architecture/api.yaml. specpilot validate doesn’t require it. Setup writes it unless your API answer is None.

What it holds

An OpenAPI 3.0 file for a REST API, with info, servers and paths, or the GraphQL or CLI equivalent. SpecPilot’s own fields are x-project, x-version and x-lastUpdated, in OpenAPI’s extension form.

What setup writes

A placeholder /example path and a [TODO] description.

What validate checks

  • The file must parse. Errors give the line.
  • An OpenAPI file needs info.title, info.version and paths.
  • Each {name} in a path needs a matching path parameter.
  • A root key that is neither OpenAPI nor x- is a warning, which specpilot validate --fix renames.
Checked against SpecPilot 2.22.0.