Skip to content

ApiDOM Validator

Actions
This GitHub Action validates OpenAPI 2.0, OpenAPI 3.x.y and AsyncAPI 2.x definition file using ApiDOM Language Service
v1.4.0
Latest
Star (4)

ApiDOM Validator GitHub Action

This GitHub Action validates OpenAPI 2.0, OpenAPI 3.x.y and AsyncAPI 2.x definition file using ApiDOM Language Service. Validation rules are exactly the same as the one that https://editor-next.swagger.io/ uses.

Supported specifications:

Inputs

definition-file

Required Path to definition file.

fails-on

Severity level at which to fail action. Default 1, if not specified.

  • 1: Fails if error messages exist in validation output
  • 2: Fails if error or warning messages exist in validation output
  • 3: Fails if error, warning or information messages exist in validation output
  • 4: Fails if error, warning, information or hint messages exist in validation output

Example usage

uses: swaggerexpert/apidom-validate@v1
with:
  definition-file: 'path/to/my/openapi.yaml'
  fails-on: 2

ApiDOM Validator is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This GitHub Action validates OpenAPI 2.0, OpenAPI 3.x.y and AsyncAPI 2.x definition file using ApiDOM Language Service
v1.4.0
Latest

ApiDOM Validator is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.