https://github.com/eai04191/apidom-validate-cli
CLI validator for ApiDOM files using the ApiDOM Language Service.
https://github.com/eai04191/apidom-validate-cli
apidom cli openapi
Last synced: 2 months ago
JSON representation
CLI validator for ApiDOM files using the ApiDOM Language Service.
- Host: GitHub
- URL: https://github.com/eai04191/apidom-validate-cli
- Owner: eai04191
- License: mit
- Created: 2025-08-04T11:14:24.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-07T01:23:27.000Z (6 months ago)
- Last Synced: 2025-10-19T18:02:10.132Z (6 months ago)
- Topics: apidom, cli, openapi
- Language: JavaScript
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apidom-validate-cli
CLI validator for ApiDOM files using the [ApiDOM Language Service](https://www.npmjs.com/package/@swagger-api/apidom-ls).
## Usage
```bash
npx apidom-validate-cli
```
## Example
```bash
npx apidom-validate-cli ./openapi.yaml
```
Output:
```
/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)
```
## Credits
This CLI tool was heavily inspired by the [swaggerexpert/apidom-validate](https://github.com/swaggerexpert/apidom-validate) GitHub Action, especially the implementation patterns for using the ApiDOM Language Service.