Skip to content

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

License

Notifications You must be signed in to change notification settings

char0n/apidom-validate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApiDOM Validator GitHub Action


Warning

This repository and it's GitHub Action has been transferred to swaggerexpert/apidom-validate. Please migrate to swaggerexpert/apidom-validate ASAP. This repository is here only for backward compatible reason and is not going to be maintained anymore.


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: char0n/apidom-validate@v1
with:
  definition-file: 'path/to/my/openapi.yaml'
  fails-on: 2

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.6%
  • Dockerfile 8.4%