Redocly · Example Payload

Redocly Lint Result Example

Example output from 'redocly lint openapi/petstore.yaml --format json'

AIAPI CatalogAPI DocumentationArazzoDeveloper PortalGovernanceLintingMCPMonitoringOpenAPI

Redocly Lint Result Example is an example object payload from Redocly, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptioncommandoutput

Example Payload

redocly-lint-result-example.json Raw ↑
{
  "description": "Example output from 'redocly lint openapi/petstore.yaml --format json'",
  "command": "redocly lint openapi/petstore.yaml --format json",
  "output": {
    "totals": {
      "errors": 2,
      "warnings": 1,
      "ignored": 0
    },
    "fileTotals": {
      "openapi/petstore.yaml": {
        "errors": 2,
        "warnings": 1,
        "ignored": 0
      }
    },
    "problems": [
      {
        "message": "Operation must have a non-empty 'summary' field.",
        "severity": "error",
        "ruleId": "operation-summary",
        "location": [
          {
            "source": "openapi/petstore.yaml",
            "pointer": "#/paths/~1pets~1{petId}/get",
            "line": 34,
            "col": 5
          }
        ]
      },
      {
        "message": "Operation must have a non-empty 'operationId' field.",
        "severity": "error",
        "ruleId": "operation-operationId",
        "location": [
          {
            "source": "openapi/petstore.yaml",
            "pointer": "#/paths/~1pets~1{petId}/delete",
            "line": 56,
            "col": 5
          }
        ]
      },
      {
        "message": "Operation 'description' is recommended.",
        "severity": "warn",
        "ruleId": "operation-description",
        "location": [
          {
            "source": "openapi/petstore.yaml",
            "pointer": "#/paths/~1pets/get",
            "line": 12,
            "col": 5
          }
        ]
      }
    ]
  }
}