Linting

Lint an OpenAPI document

Changed on

Lint an OpenAPI document, in JSON or YAML, sent as the body. Send its content-length: a body without one is refused with 400, and one over 60 MiB with 413, before it is read.

With no query, the report has the first 5 problems of each rule. With rule, it has only that rule, and offset and limit page its problems.

422 for a document no rule is for, one the linter cannot read, or one too large for the linter to check. 503 with Retry-After when the linter is busy with large documents or stopped. No sign-in; rate-limited per caller.

post/v1/lint

Request

  • Base URL
    https://api.skmtc.dev
  • Auth
    none declared

Query parameters

rule, string

The one rule to report, as operation-operationId.

offset, integer

The problems of rule to skip, 0 by default. Only with rule.

limit, integer

The problems of rule to give, 100 by default. Only with rule.

Request body application/octet-stream

string binary required

Response

The request has succeeded.

LintReport required

What the linter found. The counts are of the whole document, whatever the query. Rules with errors come first, then the rules with the most problems.

counts, LintCounts required

How many problems the document has of each severity.

rules, LintRule[] required

Changes