Skip to content

API

Linters

Linter Additional
spectral
API_SPECTRAL
GitHub stars

Linted files

  • File extensions:
    • .yml
    • .yaml
    • .json
  • Detected file content:
    • "asyncapi":
    • "openapi":
    • "swagger":
    • asyncapi:
    • openapi:
    • swagger:

Configuration in MegaLinter

Variable Description Default value
API_PRE_COMMANDS List of bash commands to run before the linters None
API_POST_COMMANDS List of bash commands to run after the linters None
API_FILTER_REGEX_INCLUDE Custom regex including filter
API_FILTER_REGEX_EXCLUDE Custom regex excluding filter