ajv-cli icon indicating copy to clipboard operation
ajv-cli copied to clipboard

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

Open gpakosz opened this issue 4 years ago • 1 comments

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

gpakosz avatar Jun 10 '21 14:06 gpakosz

Any update for this?

edonv avatar Aug 18 '25 15:08 edonv