ajv-validator / ajv-validator/ajv-cli

ajv-cli can't validate a file that doesn't have .json for extension

Open
#152 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
316
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Hello,

I've just installed `ajv-cli` with `npm install -g ajv-cli` and trying to validate a file named e.g. `foo.bar` fails with
```
error: Unexpected token ':'
```

Renaming the file to `foo.json` works

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.