Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added missing draft2020 support info while running ajv help #240

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/commands/help.ts
Original file line number Diff line number Diff line change
@@ -58,7 +58,8 @@ function schemaSpecOption(): void {
options:
--spec= JSON schema specification to use
draft7 JSON Schema draft-07 (default)
draft2019 JSON Schema draft-2019-09`)
draft2019 JSON Schema draft-2019-09
draft2020 JSON Schema draft-2020-12`)
}

function helpValidate(): void {

Unchanged files with check annotations Beta

import type AjvCore from "ajv/dist/core"

Check failure on line 1 in src/commands/ajv.ts

GitHub Actions / build (10.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/ajv.ts

GitHub Actions / build (10.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/ajv.ts

GitHub Actions / build (12.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/ajv.ts

GitHub Actions / build (12.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/ajv.ts

GitHub Actions / build (14.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/ajv.ts

GitHub Actions / build (14.x)

'err' is of type 'unknown'.
import type {ParsedArgs} from "minimist"
import type {SchemaSpec} from "./types"
import Ajv7, {Plugin} from "ajv"
import type Ajv from "ajv"

Check failure on line 1 in src/commands/util.ts

GitHub Actions / build (10.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/util.ts

GitHub Actions / build (10.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/util.ts

GitHub Actions / build (12.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/util.ts

GitHub Actions / build (12.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/util.ts

GitHub Actions / build (14.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/commands/util.ts

GitHub Actions / build (14.x)

'err' is of type 'unknown'.
import * as glob from "glob"
import * as path from "path"
import * as fs from "fs"