From eb7afc323720b24a66e451381985e715493021c8 Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Tue, 7 Dec 2021 10:57:23 +0000 Subject: [PATCH 1/2] Add `draft2020` to supported schema versions in `help` As `draft2020` is supported, we should make it clear in the output from our `help` subcommand. --- src/commands/help.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/help.ts b/src/commands/help.ts index acd473c..1d2bfb1 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -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 { From 6d9c04e72d8f4f7b47c35accbefc1c295c16522a Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Mon, 20 Dec 2021 09:40:05 +0000 Subject: [PATCH 2/2] Add `jtd` to supported schema versions in `help` As `jtd` is supported, we should make it clear in the output from our `help` subcommand. --- src/commands/help.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/help.ts b/src/commands/help.ts index 1d2bfb1..d5a13e5 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -59,7 +59,8 @@ options: --spec= JSON schema specification to use draft7 JSON Schema draft-07 (default) draft2019 JSON Schema draft-2019-09 - draft2020 JSON Schema draft-2020-12`) + draft2020 JSON Schema draft-2020-12 + jtd JSON Type Definition`) } function helpValidate(): void {