Linting
Lint the OpenAPI document at a URL
Changed onLint the OpenAPI document at a URL. The URL is fetched as an import fetches one: https only, no private host, each redirect checked, at most 60 MiB. The query and the answers are those of lintDocument, and also:
- 422 for a URL refused as above, one that cannot be reached, or one that answers a status other than 429 or 5xx.
- 503 with Retry-After for a host that answers 429 or 5xx, or does not answer in time, and when the service cannot read its stored copy of the document.
post/v1/lint/url
Request
- Base URLhttps://api.skmtc.dev
- Authnone 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
Lint Document At Url Request required
The address of a document to lint.
url, string required
An https URL of an OpenAPI document, in JSON or YAML.
Response
The request has succeeded.
Lint Report 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, Lint Counts required
How many problems the document has of each severity.
rules, Lint Rule[] required
Changes
- info
endpoint added
- info