DocsSkmtc API

This reference is the skmtc/skmtc-api API on Hub. Star it to see each revision, and add a pipeline to get its changes.

Star

Linting

POST

Lint the OpenAPI document at a URL

Changed on Nov 29, 2026

Lint 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.

Request

Method
POST
Path
/v1/lint/url
content-type
application/json

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

object

The address of a document to lint.

url, string required

An https URL of an OpenAPI document, in JSON or YAML.

Example request
{
  "url": "string"
}

Response

200 application/json

The request has succeeded.

object

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, object required

How many problems the document has of each severity.

rules, array of LintRule required
Example response
{
  "counts": {
    "error": 0,
    "warn": 0,
    "info": 0,
    "hint": 0
  },
  "rules": [
    {
      "code": "string",
      "severity": "error",
      "count": 0,
      "problems": [
        {
          "message": "string",
          "path": [
            "string"
          ],
          "line": 0,
          "character": 0
        }
      ]
    }
  ]
}

400 application/json

Binds a concrete HTTP Status to the shared ApiError body.

object

The uniform error envelope returned for every non-2xx response.

code, 'badRequest' | 'unauthorized' | 'forbidden' | 'notFound' | 'conflict' | 'unprocessable' | 'gone' | 'payloadTooLarge' | 'unsupportedMediaType' | 'documentTooLarge' | 'documentRefersToOtherFiles' | 'marked' | 'webhookLimitReached' | 'rateLimited' | 'internal' | 'unavailable' | 'badGateway' | 'notImplemented' required

Machine-readable error category. Each value pairs with one HTTP status.

message, string required

Human-readable summary safe to surface to end users.

requestId, string required

Correlates the response with server logs for support.

details, array of ErrorDetail
Example response
{
  "code": "badRequest",
  "message": "string",
  "requestId": "string",
  "details": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}

403 application/json

Binds a concrete HTTP Status to the shared ApiError body.

object

The uniform error envelope returned for every non-2xx response.

code, 'badRequest' | 'unauthorized' | 'forbidden' | 'notFound' | 'conflict' | 'unprocessable' | 'gone' | 'payloadTooLarge' | 'unsupportedMediaType' | 'documentTooLarge' | 'documentRefersToOtherFiles' | 'marked' | 'webhookLimitReached' | 'rateLimited' | 'internal' | 'unavailable' | 'badGateway' | 'notImplemented' required

Machine-readable error category. Each value pairs with one HTTP status.

message, string required

Human-readable summary safe to surface to end users.

requestId, string required

Correlates the response with server logs for support.

details, array of ErrorDetail
Example response
{
  "code": "badRequest",
  "message": "string",
  "requestId": "string",
  "details": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}

413 application/json

Binds a concrete HTTP Status to the shared ApiError body.

object

The uniform error envelope returned for every non-2xx response.

code, 'badRequest' | 'unauthorized' | 'forbidden' | 'notFound' | 'conflict' | 'unprocessable' | 'gone' | 'payloadTooLarge' | 'unsupportedMediaType' | 'documentTooLarge' | 'documentRefersToOtherFiles' | 'marked' | 'webhookLimitReached' | 'rateLimited' | 'internal' | 'unavailable' | 'badGateway' | 'notImplemented' required

Machine-readable error category. Each value pairs with one HTTP status.

message, string required

Human-readable summary safe to surface to end users.

requestId, string required

Correlates the response with server logs for support.

details, array of ErrorDetail
Example response
{
  "code": "badRequest",
  "message": "string",
  "requestId": "string",
  "details": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}

422 application/json

Binds a concrete HTTP Status to the shared ApiError body.

object

The uniform error envelope returned for every non-2xx response.

code, 'badRequest' | 'unauthorized' | 'forbidden' | 'notFound' | 'conflict' | 'unprocessable' | 'gone' | 'payloadTooLarge' | 'unsupportedMediaType' | 'documentTooLarge' | 'documentRefersToOtherFiles' | 'marked' | 'webhookLimitReached' | 'rateLimited' | 'internal' | 'unavailable' | 'badGateway' | 'notImplemented' required

Machine-readable error category. Each value pairs with one HTTP status.

message, string required

Human-readable summary safe to surface to end users.

requestId, string required

Correlates the response with server logs for support.

details, array of ErrorDetail
Example response
{
  "code": "badRequest",
  "message": "string",
  "requestId": "string",
  "details": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}

429 application/json

Binds a concrete HTTP Status to the shared ApiError body.

object

The uniform error envelope returned for every non-2xx response.

code, 'badRequest' | 'unauthorized' | 'forbidden' | 'notFound' | 'conflict' | 'unprocessable' | 'gone' | 'payloadTooLarge' | 'unsupportedMediaType' | 'documentTooLarge' | 'documentRefersToOtherFiles' | 'marked' | 'webhookLimitReached' | 'rateLimited' | 'internal' | 'unavailable' | 'badGateway' | 'notImplemented' required

Machine-readable error category. Each value pairs with one HTTP status.

message, string required

Human-readable summary safe to surface to end users.

requestId, string required

Correlates the response with server logs for support.

details, array of ErrorDetail
Example response
{
  "code": "badRequest",
  "message": "string",
  "requestId": "string",
  "details": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}

503 application/json

503 - the service cannot answer this request now.

object

The uniform error envelope returned for every non-2xx response.

code, 'badRequest' | 'unauthorized' | 'forbidden' | 'notFound' | 'conflict' | 'unprocessable' | 'gone' | 'payloadTooLarge' | 'unsupportedMediaType' | 'documentTooLarge' | 'documentRefersToOtherFiles' | 'marked' | 'webhookLimitReached' | 'rateLimited' | 'internal' | 'unavailable' | 'badGateway' | 'notImplemented' required

Machine-readable error category. Each value pairs with one HTTP status.

message, string required

Human-readable summary safe to surface to end users.

requestId, string required

Correlates the response with server logs for support.

details, array of ErrorDetail
Example response
{
  "code": "badRequest",
  "message": "string",
  "requestId": "string",
  "details": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}
Nov 29, 20267dfef83950e3
  • endpointadded