Skip to main content

apiome lint

Global options such as --base-url, --tenant and --json go before the command — see CLI reference. Exit codes are listed in Exit codes.

apiome lint​

Score schema quality, list lint findings, and run the CI lint gate.

apiome lint [OPTIONS] COMMAND [ARGS]...

Subcommands: evidence, gate, suggest, verify-attestation.

Options

OptionTypeDefaultRequiredDescription
--projecttextProject UUID or slug.
--versiontextVersion UUID, slug, or label.
--base-versiontextOptional base version (UUID, slug, or label) to flag breaking changes against.
--min-gradetextExit non-zero when the grade is worse than this (A best, F worst).
--fail-on-policyflagFetch lint policy evaluation and exit non-zero when policy gates fail.
--fixflagApply the version's deterministic lint fixes as a new revision.
--dry-runflagWith --fix: print the change (a unified diff by default) and write nothing.
--onlytextWith --fix: fix only these rule ids (comma-separated); an unknown id is refused.
--allow-renamesflagWith --fix: include rename fixes. A breaking fix is never applied.
--fix-formattextdiffWith --fix: how the change is printed or written: diff | patch | overlay.
--output, -opathWith --fix: write the change (--fix-format) to this file.

apiome lint evidence​

List the immutable lint evidence runs for a version (GET .../lint/evidence).

Emits the full JSON evidence payload: one run per scanner execution with provenance fingerprints, outcome, coverage, and normalized findings.

apiome lint evidence [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesVersion UUID, slug, or label.

apiome lint gate​

Run the lint CI gate for a version (GET .../lint/gate) and emit an artifact.

Exits non-zero ONLY when a configured policy gate failed (gate.passed false in the verdict) — findings without policy failures, or failures of gates the pack disabled, exit 0. The maturity level line (GVM-1.3) is always printed when the guide has a ladder; it changes the exit code only when the pack's failOnMaturityLevel toggle is on. The verdict is always fetched as JSON; a non-json --format additionally fetches that artifact and writes it to --output (or stdout, with the human summary moved to stderr so the artifact stays clean).

apiome lint gate [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesVersion UUID, slug, or label.
--base-versiontextOptional baseline version (UUID, slug, or label) to diff regressions against; without it, each scanner's latest run is compared to its own previous run.
--policy-versiontextOptional historical policy pack id (defaults to the latest for the assigned guide).
--new-onlyflagGate only newly introduced violations: pre-existing unwaived errors do not fail; coverage and axis gates still evaluate the full revision.
--formattextjsonArtifact format: json | sarif | junit | markdown | attestation.
--output, -opathWrite the artifact to this file (non-json formats print to stdout otherwise).

apiome lint suggest​

Suggest the deterministic lint fixes of a spec file for a CI comment (GVM-3.4).

Plans the file's fixes (POST /v1/lint/fixes/plan, nothing stored) and applies each ready fix alone to the file's text, so snippets and line ranges are those of the file itself. The file is never rewritten. --format patch writes the plan's RFC 6902 document (the bytes the plan endpoint returns); json adds, for every fix that changes a single region of the file, the line range and replacement a GitHub suggestion block needs. Exits 0 whatever is suggested.

apiome lint suggest [OPTIONS] FILE

Arguments

ArgumentTypeRequiredDescription
FILEpathyesThe OpenAPI 3.x file (YAML or JSON) to suggest fixes for.

Options

OptionTypeDefaultRequiredDescription
--formattextmarkdownmarkdown (the Suggested fixes section) | json (rules plus single-region suggestions) | patch | overlay | diff (the plan's full change).
--output, -opathWrite to this file instead of stdout.
--onlytextSuggest fixes for these rule ids only (comma-separated).
--allow-renamesflagInclude rename fixes. A breaking fix is never suggested.
--pathtextThe file's repository-relative path, as the pull request names it (default: FILE).
--artifact-urltextmarkdown: link the full patch and overlay at this URL (e.g. the workflow run's artefacts).

apiome lint verify-attestation​

Verify a lint gate attestation offline (no server round-trip).

Recomputes the DSSE PAEv1 HMAC-SHA256 signature with the shared secret and compares it against the envelope's signatures. Exits 0 when verified, non-zero otherwise.

apiome lint verify-attestation [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--file, -fpathyesPath to the attestation envelope JSON (from --format attestation).
--secret, -stextyesShared HMAC secret (server: APIOME_LINT_ATTESTATION_SIGNING_SECRET). Env: APIOME_LINT_ATTESTATION_SECRET.