Skip to main content

Lint

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: lint · 16 operations

POST /v1/lint/custom-rules/import​

Import Spectral Ruleset Document

Import a Spectral ruleset (GOV-1.5, #4431).

Accepts a .spectral.yaml document (content — a paste or an uploaded file's text) or a url to fetch one from, and translates it into Apiome governance state: extends: spectral:oas resolves onto the built-in rule catalog (GOV-1.2), custom rule definitions are translated into the custom-rule DSL (GOV-1.3), and everything the subset cannot express is listed in entries with a machine-readable reason. Lossy-but-successful translations carry notes, so coverage is transparent rather than silently partial.

Nothing is persisted: yaml is ready for PUT /v1/style-guides/{tenantSlug}/{guideId}/custom-rules and builtinRules for PUT /v1/style-guides/{tenantSlug}/{guideId}/rules.

Operation id: import_spectral_ruleset_document_v1_lint_custom_rules_import_post

Parameters

NameInTypeRequiredDescription
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for import spectral ruleset document.

Responses

StatusDescriptionBody
200Successful response for import spectral ruleset document.application/json SpectralImportResponse
400The ruleset could not be read: empty, invalid YAML, not a mapping, oversized, or (for url) unfetchable / blocked by the SSRF guard.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/lint/custom-rules/validate​

Validate Custom Rules

Strictly validate a custom-rule style guide (GOV-1.3, #4429).

Accepts the Spectral-compatible subset DSL: a YAML document with rules.<id>: {description, severity, given, then} where then uses the core functions pattern, casing, enumeration, truthy, defined, undefined, and length. On success the parsed rules are echoed back (the shape stored in style_guide_rules.custom_def). A malformed guide returns HTTP 422 whose detail carries a message and a pointer to the offending definition. Custom rule ids may not shadow built-in rule ids.

Operation id: validate_custom_rules_v1_lint_custom_rules_validate_post

Parameters

NameInTypeRequiredDescription
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for validate custom rules.

Responses

StatusDescriptionBody
200Successful response for validate custom rules.application/json CustomRulesValidateResponse
422Malformed guide: detail.message explains the problem and detail.pointer points at the offending YAML node (e.g. rules.my-rule.then.functionOptions.match).—

GET /v1/lint/external-adapters​

List External Lint Adapters

Discover Spectral / Vacuum / Redocly OpenAPI validation packs (CLX-2.2 / #4852).

Operation id: list_external_lint_adapters_v1_lint_external_adapters_get

Parameters

NameInTypeRequiredDescription
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list external lint adapters.application/json ExternalLintAdaptersResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/lint/fixes/plan​

Plan Lint Fixes For Document

Plan the deterministic lint fixes of a posted document (file mode).

Stateless: nothing is stored. The tenant's style guide decides which rules are on, as it does for a stored revision of a project without its own guide.

Raises: HTTPException: 413 over the size limit; 422 not YAML/JSON, not OpenAPI 3.x, or invalid options.

Operation id: plan_lint_fixes_for_document_v1_lint_fixes_plan_post

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for plan lint fixes for document.

Responses

StatusDescriptionBody
200The plan; format=patch returns an RFC 6902 document, format=overlay an Overlay 1.0 document and format=diff a unified diff.application/json LintFixPlanOut; application/json-patch+json array of object; text/x-diff string
422Validation Errorapplication/json HTTPValidationError

GET /v1/lint/format-capabilities​

List Format Lint Capabilities

Publish the per-format lint capability matrix (CLX-2.4 / #4854).

Every sniffed / importable format reports native, adapted, or unsupported. Unsupported planned packs link their existing MFI issues rather than duplicating parser/normalizer work.

Operation id: list_format_lint_capabilities_v1_lint_format_capabilities_get

Parameters

NameInTypeRequiredDescription
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list format lint capabilities.application/json FormatLintCapabilitiesResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/lint/overlay​

Lint Overlay

Lint an OpenAPI Overlay on its own, without a base document (GVM-4.1).

The version and structural rules run; overlay.unmatched-target and overlay.extends-unresolved are reported skipped (no-base) because only a base can decide them.

Raises: HTTPException: 413 when the document is over the size limit; 422 when it is not YAML or JSON, or not a mapping.

Operation id: lint_overlay_v1_lint_overlay_post

Parameters

NameInTypeRequiredDescription
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for lint overlay.

Responses

StatusDescriptionBody
200Successful response for lint overlay.application/json OverlayLintResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/lint/rules​

List Lint Rules

List every registered built-in lint rule (GOV-1.2, #4428).

Returns the full rule-catalog registry: each rule's stable id (the exact string lint findings carry in their rule field), its pack, category, default severity, one-line rationale, and a docs anchor into the rule reference page. Sorted by rule id, so the payload is deterministic. The catalog is the same for every tenant — style guides (GOV-1.1/GOV-1.4) layer per-tenant enable/disable and severity overrides on top of it.

Every rule also publishes the OWASP API Security Top 10 categories it cites (owasp) and, for security-category rules, the weight the security score applies to its severity penalty (ASP-1.3, #5921) — the weights are public, not a server secret.

Every rule also publishes its fix capability (GVM-3.1, #5869): fixable, and for a fixable rule fixClass (structural / removal / fill-in / rename), wireVisible, fixScope, fixDefault and a one-line fixSummary. fixOwner says who repairs the rule's findings: the deterministic engine, the agent or a human.

A renamed rule lists its earlier ids in aliases (GVM-4.4, #5879): the Arazzo arazzo.unresolvable-operation-ref still answers to arzzo.unresolvable-operation-ref.

Operation id: list_lint_rules_v1_lint_rules_get

Parameters

NameInTypeRequiredDescription
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list lint rules.application/json LintRuleCatalogResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/lint/schematron/import​

Import Schematron Document

Import a Schematron rule set as a style guide (FMT-4.3, #5436).

Schematron is a rule language, not a schema language, so it lands on the governance engine rather than the canonical schema model: every assert/report becomes one rule, its @id the rule id, its @role the severity, its text the message, and its @context the target.

Assertions about shape — a child or attribute must (or must not) be declared, a value must come from a fixed set — are imported as evaluable rules scored against the canonical model, so an imported Peppol-shaped profile re-scores any XSD- or UBL-derived catalog item. Assertions that need a document in hand (arithmetic, computed variables, string lengths, an instance-selecting context predicate) are imported as declared-but-unevaluable rules carrying a machine-readable reason — they are never dropped, and entries says exactly what happened to each one.

Nothing is persisted: yaml is ready for PUT /v1/style-guides/{tenantSlug}/{guideId}/custom-rules.

Operation id: import_schematron_document_v1_lint_schematron_import_post

Parameters

NameInTypeRequiredDescription
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for import schematron document.

Responses

StatusDescriptionBody
200Successful response for import schematron document.application/json SchematronImportResponse
400The rule set could not be read: not XML, not Schematron, truncated, not UTF-8, an unresolvable include/is-a, or no assertion at all. detail.code carries the intake taxonomy code.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint​

Lint Revision

Score the quality of a schema revision and return itemized, deterministic lint findings.

The score (0-100) and A-F grade are computed by the server from the reconstructed OpenAPI/JSON-Schema — no client-side scoring. When baseRevisionId is supplied, breaking and unknown compatibility findings relative to that revision are folded into the report.

Operation id: lint_revision_v1_versions__tenant_slug___project_id___version_record_id__lint_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
baseRevisionIdquerystring or nullnoOptional base revision (versions.id) to flag breaking changes against.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for lint revision.application/json LintReportResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint/axes​

Lint Revision Axes

Return the multi-axis score and coverage evaluation for a schema revision (CLX-1.2, #4849).

Prefers the latest stored lint_axis_evaluations row for algorithm clx-axis-v1. When no evaluation has been persisted yet, computes one from the revision's captured quality report (and optionally records it). Legacy qualityScore / qualityGrade list fields are unchanged — quality remains the backwards-compatible axis.

Operation id: lint_revision_axes_v1_versions__tenant_slug___project_id___version_record_id__lint_axes_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for lint revision axes.application/json LintAxesResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint/evidence​

Lint Revision Evidence

Return the immutable lint evidence recorded for a schema revision (CLX-1.1, #4848).

Lists the newest limit evidence runs captured for the revision (200 at most, #7196) — provenance (scanner, adapter, profile, fingerprints), outcome, normalized findings, and coverage — plus a per-scanner coverage summary, computed over those runs, in which a scanner that never ran reads as not_run (never as clean). Raw output artifacts are access-controlled: responses expose only their availability, never the storage reference or command metadata. Evidence is read-only by design; rows are written at score-capture time and are immutable.

Operation id: lint_revision_evidence_v1_versions__tenant_slug___project_id___version_record_id__lint_evidence_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
limitqueryintegernoPage size. At most 200.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for lint revision evidence.application/json LintEvidenceResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint/fixes​

Get Lint Fix Plan

Plan the deterministic lint fixes of a stored revision.

The plan is computed over the revision's OpenAPI document — the reconstruction its stored lint report was computed from — under the project's style guide. The stored report's fingerprint is echoed with whether it still matches the document, so a reader can tell the plan and the report describe the same content.

Raises: HTTPException: 404 unknown revision; 422 non-OpenAPI revision or invalid options.

Operation id: get_lint_fix_plan_v1_versions__tenant_slug___project_id___version_record_id__lint_fixes_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
formatqueryenum "json", "patch", "overlay", "diff"nojson | patch | overlay | diff.
rulesquerystring or nullnoComma-separated rule ids to plan.
includeRenamesquerybooleannoPlan rename fixes.
operationIdTemplatequerystringnoTemplate of generated operationIds: {method} {Method} {path} {Path}.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200The plan; format=patch returns an RFC 6902 document, format=overlay an Overlay 1.0 document and format=diff a unified diff.application/json LintFixPlanOut; application/json-patch+json array of object; text/x-diff string
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint/fixes/apply​

Apply Lint Fixes

Apply lint fixes to an unpublished revision by creating a new lint-fix revision.

The revision itself is never changed. The plan is rebuilt with the request's options, the named fixes are composed onto the document, and the result is imported as a new revision of the same project (through the import quality gate and pipeline). The new revision is re-linted and its report stored; its source: lint-fix provenance and the version.lint_fix_applied audit row are written in one transaction.

Raises: HTTPException: 404 unknown revision; 409 published revision, version-exists or QUALITY_POLICY_BLOCKED; 422 for a breaking, conflicting, excluded or unknown fix, nothing to apply, invalid options, or a failed import; 500 when the record cannot be written (the new revision is withdrawn).

Operation id: apply_lint_fixes_v1_versions__tenant_slug___project_id___version_record_id__lint_fixes_apply_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for apply lint fixes.

Responses

StatusDescriptionBody
201Successful response for apply lint fixes.application/json LintFixApplyOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint/gate​

Lint Revision Gate

Evaluate the lint CI gate for a revision and emit a machine-readable artifact (CLX-4.2).

Runs the pinned policy pack over the revision's current evidence (persisting a reproducible lint_policy_evaluations row), optionally compares against a baseline revision for regressions, and serializes the verdict as JSON, SARIF 2.1.0, JUnit XML, Markdown, or a signed in-toto attestation. The HTTP status is always 200 — the pass/fail verdict lives in the body (gate.passed), so CI exit codes stay under the CLI's control and reflect only configured policy failures.

Operation id: lint_revision_gate_v1_versions__tenant_slug___project_id___version_record_id__lint_gate_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
formatquerystring or nullnoArtifact format: json (default) | sarif | junit | markdown | attestation. The Accept header is honored when the query parameter is absent.
baselineRevisionIdquerystring or nullnoOptional baseline revision (versions.id) to diff regressions against; must belong to the same project. Without it, regressions compare each scanner's latest run to its own previous run.
newOnlyquerybooleannoScope the CI verdict's unwaived-errors gate to newly introduced findings, so pre-existing debt does not block. Coverage and axis gates always evaluate the full head revision.
policyVersionIdquerystring or nullnoOptional historical policy pack id; defaults to the latest for the assigned guide.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for lint revision gate.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint/level​

Lint Revision Level

The revision's maturity level under its style guide's ladder (GVM-1.2, #5855).

Returns the highest level satisfied, the next level and what blocks it. The result is the revision's policy evaluation (gate_results.maturity): unchanged inputs return the stored evaluation and its id, a changed input records a new one. A guide without a ladder answers level: null, reason: no-ladder.

Operation id: lint_revision_level_v1_versions__tenant_slug___project_id___version_record_id__lint_level_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
policyVersionIdquerystring or nullnoOptional historical policy pack id; defaults to the latest for the assigned guide.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for lint revision level.application/json LintLevelResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/lint/policy​

Lint Revision Policy

Evaluate the assigned style-guide policy pack against revision evidence (CLX-1.3, #4850).

Separates raw findings from policy decisions. Waivers require rationale + expiry and reopen when expired. Persists an append-only lint_policy_evaluations row for reproducibility.

Operation id: lint_revision_policy_v1_versions__tenant_slug___project_id___version_record_id__lint_policy_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
policyVersionIdquerystring or nullnoOptional historical policy pack id; defaults to the latest for the assigned guide.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for lint revision policy.application/json LintPolicyResponse
422Validation Errorapplication/json HTTPValidationError

Schemas used​

CustomRulesValidateRequest​

Request body for custom-rule DSL validation (GOV-1.3, #4429): the guide YAML source.

PropertyTypeRequiredDescription
yamlstringyesThe style-guide YAML document (rules.<id>: {description, severity, given, then}).

CustomRulesValidateResponse​

Successful validation of a custom-rule guide (GOV-1.3, #4429): the parsed rules.

PropertyTypeRequiredDescription
validbooleanyesAlways true on a 200 (malformed guides return HTTP 422).
countintegeryesNumber of validated rules (== len(rules)).
rulesarray of CustomRuleOutyesEvery validated rule, in author order.

ExternalLintAdaptersResponse​

Discovery for Spectral / Vacuum / Redocly validation packs (CLX-2.2).

PropertyTypeRequiredDescription
adaptersarray of ExternalLintAdapterOutyesAdapters.
countintegeryesNumber of count.
defaultBulkRunnerstringyesDefault Bulk Runner.
profilesarray of stringyesProfiles.
rationalestringyesWhy the default bulk runner was selected (parity, not speed).

FormatLintCapabilitiesResponse​

Published per-format lint capability matrix (CLX-2.4 / #4854).

PropertyTypeRequiredDescription
formatsarray of FormatLintCapabilityOutyesFormats.
countintegeryesNumber of count.
docsPagestringyesRepository-relative path of the capability matrix documentation.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

LintAxesResponse​

Response envelope for GET …/lint/axes (CLX-1.2, #4849).

PropertyTypeRequiredDescription
evaluationLintAxisEvaluationOutyesEvaluation.

LintEvidenceResponse​

All lint evidence for one catalog revision or MCP endpoint version (CLX-1.1, #4848).

PropertyTypeRequiredDescription
subjectTypestringyesSubject kind: catalog_revision or mcp_endpoint_version.
subjectIdstringyesThe revision (versions.id) or snapshot (mcp_endpoint_versions.id).
runsarray of LintEvidenceRunOutnoImmutable evidence runs, most recent first.
coveragearray of LintEvidenceCoverageOutnoPer-scanner coverage: expected scanners first, then any additional scanners with historical runs. Never-run scanners appear as not_run — never as clean.
countintegeryesNumber of evidence runs (== len(runs)).

LintFixApplyOut​

The revision an apply created.

PropertyTypeRequiredDescription
projectIdstringyesProject ID.
sourceVersionRecordIdstringyesSource Version Record ID.
versionRecordIdstringyesVersion Record ID.
versionLabelstringyesVersion Label.
appliedFixIdsarray of stringyesApplied Fix IDs.
skippedarray of LintFixSkippedOutnoSkipped.
scoreinteger or nullnoScore.
gradestring or nullnoGrade.
reportFingerprintstring or nullnoReport Fingerprint.

LintFixApplyRequest​

POST …/lint/fixes/apply: name the fixes (fixIds) or rules (rules) to apply.

PropertyTypeRequiredDescription
fixIdsarray of string or nullnoFix IDs.
rulesarray of string or nullnoRules.
reasonstringyesWhy the fixes are applied (audited).
includeRenamesbooleannoInclude Renames.
operationIdTemplatestringnoOperation ID Template.
versionLabelstring or nullnoVersion Label.

LintFixPlanOut​

A lint-fix plan (format=json).

PropertyTypeRequiredDescription
documentFingerprintstringyesDocument Fingerprint.
fixedDocumentFingerprintstringyesFixed Document Fingerprint.
includeRenamesbooleanyesInclude Renames.
rulesarray of string or nullnoRules.
operationIdTemplatestringyesOperation ID Template.
countsmap of integeryesCounts.
appliedOrderarray of stringyesApplied Order.
entriesarray of LintFixEntryOutyesEntries.
guideIdstring or nullnoGuide ID.
guideNamestring or nullnoGuide Name.
projectIdstring or nullnoProject ID.
versionRecordIdstring or nullnoVersion Record ID.
reportFingerprintstring or nullnoFingerprint of the revision's stored lint report (revision plans only).
reportCurrentboolean or nullnoWhether the stored report still matches the planned document (revision plans only).

LintFixPlanRequest​

POST /v1/lint/fixes/plan: plan the fixes of a posted document.

PropertyTypeRequiredDescription
documentstringyesThe OpenAPI document, as YAML or JSON text.
filenamestring or nullnoThe file name, for messages.
formatenum "json", "patch", "overlay", "diff"noFormat.
rulesarray of string or nullnoPlan only these rule ids.
includeRenamesbooleannoInclude Renames.
operationIdTemplatestringnoOperation ID Template.

LintLevelResponse​

GET …/lint/level: a subject's maturity level under its policy pack (GVM-1.2, #5855).

PropertyTypeRequiredDescription
subjectTypestringyesSubject Type.
subjectIdstringyesSubject ID.
evaluationIdstring or nullnoThe persisted lint_policy_evaluations row; unchanged inputs return the same id.
evaluatedAtstring or nullnoEvaluated At.
policyVersionIdstringyesPolicy Version ID.
policyContentFingerprintstringyesPolicy Content Fingerprint.
ladderNamestring or nullnoLadder Name.
levelstring or nullnoKey of the highest level satisfied; null when none is or there is no ladder.
levelLabelstring or nullnoLevel Label.
levelIndexinteger or nullnoPosition of level in the ladder (0 = lowest).
nextLevelstring or nullnoThe level above level; null at the top or without a ladder.
nextLevelLabelstring or nullnoNext Level Label.
blockersarray of LintLevelBlockerOutnoWhat keeps the subject from nextLevel.
waiversCountedintegernoWaived findings the satisfied levels excused.
unassessedAxesarray of stringnoAxes the ladder names that were never assessed for this subject.
reasonstring or nullnono-ladder or below-first-level when level is null; null otherwise.

LintPolicyResponse​

GET …/lint/policy response: pack pin, evaluation, findings with decisions.

PropertyTypeRequiredDescription
policyVersionStyleGuidePolicyVersionOutyesPolicy Version.
evaluationLintPolicyEvaluationOutyesEvaluation.
findingsarray of LintPolicyAnnotatedFindingOutnoFindings.

LintReportResponse​

Server-computed quality score + itemized findings for one project version (#3609).

PropertyTypeRequiredDescription
projectIdstringyesProject ID.
versionRecordIdstringyesVersion Record ID.
versionIdstringyesHuman-readable version label (e.g. 1.0.0).
scoreintegeryesDeterministic 0-100 quality score.
gradestringyesA-F letter grade derived from the score.
findingsarray of LintFindingOutyesFindings.
ruleHitsmap of integernoCount of findings per rule id (deterministic).
severityCountsmap of integernoCount of findings per severity (error/warning/info).
categoriesarray of LintCategoryScoreOutnoPer-category 0-100 rollup scores (MFI-25.6), sorted by name — drives the UI's category bars with real values. Empty when no categories apply.
reportFingerprintstringyesStable hash over score, grade, and findings for a fixed input.
baseRevisionIdstring or nullnoBase revision used for breaking-change comparison, when provided.
compatibilityOverallstring or nullnoCompatibility verdict vs base revision (safe/breaking/unknown), when compared.
capturedScoreinteger or nullnoScore persisted on the version at import time (MFI-4.2), if any.
capturedGradestring or nullnoA-F grade persisted on the version at import time, if any.
capturedReportFingerprintstring or nullnoReport fingerprint persisted on the version at import time, if any.
scoreIsStalebooleannoTrue when a captured fingerprint exists and differs from this live report's fingerprint, signalling the persisted score is out of date. Always False when a base revision is compared (the live report folds in extra findings) or when no score has been captured.
guideIdstring or nullnoThe style guide this report was scored under (GOV-1.4). Null when the in-code default guide applied (no guide assigned or resolvable).
guideNamestring or nullnoDisplay name of the applied style guide (e.g. 'Apiome Recommended').
guideSourcestring or nullnoOrigin of the applied guide: builtin | custom | fallback (in-code defaults).
guideRevisionIdstring or nullnoImmutable revision of the applied style guide (GOV-1.6) — the exact ruleset this report was scored against, queryable at GET /v1/style-guides/{tenantSlug}/{guideId}/revisions/{revisionId}. Null when the in-code default guide applied or no revision could be resolved.
algorithmIdstring or nullnoMulti-axis scoring algorithm id (CLX-1.2), e.g. clx-axis-v1.
axesarray of LintAxisOut or nullnoPer-axis scores and coverage (CLX-1.2). Null when not evaluated.
compositeScoreinteger or nullnoWeighted composite when required coverage is met; null otherwise.
compositeGradestring or nullnoA-F grade of the composite; null when compositeScore is null.
requiredCoverageMetboolean or nullnoTrue when required axes (v1: quality) are assessed.
securityScoreinteger or nullno0-100 security score of this revision (ASP-1.3): the security axis of the clx-axis-v1 evaluation, scored from the report's security findings under the published per-rule weights. Null when the axis is not assessed — no security rule pack evaluated the revision, or its style guide disables the pack.
securityGradestring or nullnoA-F grade of securityScore; null when securityScore is null.

LintRuleCatalogResponse​

The full built-in lint-rule catalog (GOV-1.2, #4428), sorted by rule id.

PropertyTypeRequiredDescription
rulesarray of LintRuleOutyesEvery registered built-in rule, sorted by ruleId (deterministic).
countintegeryesNumber of registered rules (== len(rules)).
docsPagestringyesRepository-relative path of the rule reference page docsAnchor points into.

OverlayLintRequest​

POST /v1/lint/overlay: the overlay to lint.

PropertyTypeRequiredDescription
documentstringyesThe Overlay document, as YAML or JSON text.
filenamestring or nullnoIts file name, used to label the findings.

OverlayLintResponse​

The lint of one bare overlay.

PropertyTypeRequiredDescription
versionstring or nullnoThe overlay's overlay marker, as written.
revisionstring or nullnoThe supported revision it selects (1.0, 1.1, 1.2), or null.
findingsarray of OverlayLintFindingOutnoFindings.
rulesarray of OverlayLintRuleStatusnoRules.

SchematronImportRequest​

Import a Schematron rule set as a style guide (FMT-4.3, #5436).

content is the rule set's text — the root document of the set. A rule set assembled from modules by include additionally supplies members: the other files of the upload, keyed by their path relative to the set root. Nothing is fetched, so an include naming a file that is not a member fails with an unresolved-reference error.

PropertyTypeRequiredDescription
contentstringyesThe Schematron document text (paste or uploaded .sch file).
sourceLabelstring or nullnoPath of content within the uploaded set (e.g. main.sch), echoed back and used to resolve a relative include href.
membersmap of string or nullnoOther files of a multi-file rule set, keyed by path relative to the set root. Only consulted by include.

SchematronImportResponse​

A Schematron rule set translated into style-guide state (FMT-4.3, #5436).

yaml is the ready-to-store custom-rules document — the exact body PUT /v1/style-guides/{tenantSlug}/{guideId}/custom-rules accepts. Nothing is persisted by the import call itself. Every assertion appears in entries and in yaml: one that could not be projected is stored as a declared rule carrying its reason, never dropped.

PropertyTypeRequiredDescription
sourceLabelstring or nullnoLabel of the imported source.
guideNamestringyesSuggested guide name: the rule set's title, else the source label.
descriptionstring or nullnoThe rule set's prose, for the guide's description.
assertionCountintegeryesAssertions the rule set declared.
projectedCountintegeryesAssertions that became evaluable canonical-model rules.
declaredCountintegeryesAssertions recorded as declared-but-unevaluable, each with a reason.
coveragenumberyesprojectedCount / assertionCount, 0.0-1.0. Reported, never gated on.
yamlstringyesThe imported rules as a style-guide YAML document.
resolvedPhasestringyesThe phase whose patterns are active (#ALL when none was selected).
phasesarray of stringnoEvery phase the rule set declares, in document order.
namespacesmap of stringnoThe ns prefix bindings the rule set declares.
modulesarray of stringnoModules spliced in by include, in resolution order.
entriesarray of SchematronImportEntryOutyesOne entry per assertion, in document order.
notesarray of stringnoDocument-level notes (rule ceiling reached, assembled modules, ...).

SpectralImportRequest​

Import a Spectral ruleset (GOV-1.5, #4431): the document, or a URL to fetch it from.

Exactly one of content (a pasted document or an uploaded .spectral.yaml file's text) and url must be supplied.

PropertyTypeRequiredDescription
contentstring or nullnoThe .spectral.yaml document text (paste or uploaded file).
urlstring or nullnohttp/https URL of a .spectral.yaml to fetch (SSRF-guarded).
sourceLabelstring or nullnoHuman label for the source (e.g. the uploaded filename), echoed back.

SpectralImportResponse​

A translated Spectral ruleset (GOV-1.5, #4431): what mapped, and what did not.

yaml is the ready-to-store custom-rules document — the exact body PUT /v1/style-guides/{tenantSlug}/{guideId}/custom-rules accepts — and builtinRules is the matching built-in rule state for PUT .../rules. Nothing is persisted by the import call itself.

PropertyTypeRequiredDescription
sourceLabelstring or nullnoLabel of the imported source.
ruleCountintegeryesRules declared by the source ruleset.
mappedCountintegeryesRules the importer translated (custom + builtin).
unsupportedCountintegeryesRules the importer could not translate; each entry carries a reason.
coveragenumberyesmappedCount / ruleCount, 0.0-1.0 (1.0 for a ruleset with no rules).
customRuleCountintegeryesCustom rules in yaml (disabled imports are reported but not serialized).
yamlstringyesThe imported custom rules as a style-guide YAML document.
builtinRulesarray of SpectralImportBuiltinRuleOutnoBuilt-in rule rows the ruleset resolves to, sorted by ruleId.
entriesarray of SpectralImportEntryOutyesOne entry per source rule, in document order.
extendsarray of SpectralImportExtendsOutnoOne entry per extends target, in document order.
notesarray of stringnoDocument-level notes (ignored top-level keys, dropped overrides, ...).