CLI validator for ApiDOM files using the ApiDOM Language Service.
npx apidom-validate-cli <file>npx apidom-validate-cli ./openapi.yamlOutput:
/openapi.yaml
11:21 error type must be one of allowed values 10001
161:11 warning property "example" is deprecated, use "examples" instead 10069
✖ 2 problems (1 errors, 1 warnings)
This CLI tool was heavily inspired by the swaggerexpert/apidom-validate GitHub Action, especially the implementation patterns for using the ApiDOM Language Service.