IBM / openapi-validator

Configurable and extensible validator/linter for OpenAPI documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text output version not printing error rule

jfoclpf opened this issue · comments

Default behviour does not mention rule applicable for error or warning

  Message :   Every operation must have unique "operationId".
  Path    :   paths./distritos/{distrito}/municipios.get.operationId
  Line    :   3203

I have to trigger -j to get json output such that I can see which rule is applicable

{
  "version": "0.97.3",
  "errors": [
    {
      "path": [
        "paths",
        "/distritos/{distrito}/municipios",
        "get",
        "operationId"
      ],
      "message": "Every operation must have unique \"operationId\".",
      "rule": "operation-operationId-unique",
      "line": 3203
    }
  ]
}

It would be useful to print the rule in default mode

Have to set -v option