@chain-registry/cli 1.43.0 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -75,6 +75,7 @@ Options:
75
75
  - `--useStrict`: Enables strict mode in the schema validation process, ensuring that only explicitly permitted properties are present in the data (default: false).
76
76
  - `--allErrors`: Configures the validator to return all errors found during validation instead of stopping at the first error (default: true).
77
77
  - `--useDefaults`: Applies default values defined in the schema during validation, filling in missing data as needed (default: true).
78
+ - `--draft`: Choose between JSON Schema drafts: `draft-07`, `2019-09`, and `2020-12` (default: 2019-09).
78
79
 
79
80
  ### Codegen
80
81
 
@@ -25,6 +25,13 @@ const commands = async (argv, prompter, _options) => {
25
25
  useDefault: true,
26
26
  default: true
27
27
  },
28
+ {
29
+ type: 'text',
30
+ name: 'draft',
31
+ required: true,
32
+ useDefault: true,
33
+ default: '2019-09'
34
+ },
28
35
  {
29
36
  type: 'confirm',
30
37
  name: 'useDefaults',
@@ -38,8 +45,9 @@ const commands = async (argv, prompter, _options) => {
38
45
  throw new Error('bad registry path!');
39
46
  }
40
47
  const registry = new workflows_1.Registry(argv.registryDir);
41
- const { allErrors, useDefaults, useStrict } = argv;
48
+ const { draft, allErrors, useDefaults, useStrict } = argv;
42
49
  const validator = new workflows_1.SchemaValidator(registry, {
50
+ draft,
43
51
  allErrors,
44
52
  useDefaults,
45
53
  useStrict
@@ -22,6 +22,13 @@ export const commands = async (argv, prompter, _options) => {
22
22
  useDefault: true,
23
23
  default: true
24
24
  },
25
+ {
26
+ type: 'text',
27
+ name: 'draft',
28
+ required: true,
29
+ useDefault: true,
30
+ default: '2019-09'
31
+ },
25
32
  {
26
33
  type: 'confirm',
27
34
  name: 'useDefaults',
@@ -35,8 +42,9 @@ export const commands = async (argv, prompter, _options) => {
35
42
  throw new Error('bad registry path!');
36
43
  }
37
44
  const registry = new Registry(argv.registryDir);
38
- const { allErrors, useDefaults, useStrict } = argv;
45
+ const { draft, allErrors, useDefaults, useStrict } = argv;
39
46
  const validator = new SchemaValidator(registry, {
47
+ draft,
40
48
  allErrors,
41
49
  useDefaults,
42
50
  useStrict
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/cli",
3
- "version": "1.43.0",
3
+ "version": "1.45.0",
4
4
  "description": "Chain Registry CLI",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmology-tech/chain-registry",
@@ -33,8 +33,8 @@
33
33
  "test:watch": "jest --watch"
34
34
  },
35
35
  "dependencies": {
36
- "@chain-registry/interfaces": "^0.42.0",
37
- "@chain-registry/workflows": "^1.43.0",
36
+ "@chain-registry/interfaces": "^0.44.0",
37
+ "@chain-registry/workflows": "^1.45.0",
38
38
  "chalk": "^4.1.0",
39
39
  "deepmerge": "^4.3.1",
40
40
  "inquirerer": "1.9.0",
@@ -47,5 +47,5 @@
47
47
  "cosmos",
48
48
  "interchain"
49
49
  ],
50
- "gitHead": "9aff67535f11998b742af7a345b00bd7bdda9332"
50
+ "gitHead": "0b1edce93eb7fd8f8181e922fd5652675397e309"
51
51
  }