You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameter `--spec` can be used with all commands (other than help) to choose JSON schema language:
@@ -203,38 +256,38 @@ This command supports the same options and parameters as [validate](#validate-da
203
256
204
257
You can pass the following [Ajv options](https://ajv.js.org/options.html):
205
258
206
-
| Option | Description |
207
-
| ------ | ----------- |
208
-
| Strict mode |
209
-
|`--strict=`|`true`/`false`/`log` - set all [strict mode](https://ajv.js.org/strict-mode.html) restrictions |
210
-
|`--strict-schema=`| log on (`log`) or ignore (`false`) [strict ](https://ajv.js.org/strict-mode.html#prohibit-ignored-keywords) restrictions (the default is to log) |
211
-
|`--strict-tuples=`| throw on (`true`) or ignore (`false`) [strict schema](https://ajv.js.org/strict-mode.html#prohibit-unconstrained-tuples) restrictions (the default is to throw) |
212
-
|`--strict-types=`| throw on (`true`) or ignore (`false`) [strict types](https://ajv.js.org/strict-mode.html#strict-types) restrictions (the default is to log) |
213
-
|`--strict-required=`| throw on (`true`) or log (`log`) [required properties](https://ajv.js.org/strict-mode.html#defined-required-properties) restrictions (the default is to ignore) |
214
-
|`--allow-matching-properties`| allow `properties`[matching patterns](https://ajv.js.org/strict-mode.html#overlap-between-properties-and-patternproperties-keywords) in `patternProperties`|
|`--use-defaults`| replace missing properties/items with the values from default keyword |
226
-
|`--coerce-types`| change type of data to match type keyword |
227
-
| Advanced |
228
-
|`--multiple-of-precision`| precision of multipleOf, pass integer number |
229
-
|`--messages=false`| do not include text messages in errors |
230
-
|`--loop-required=`| max size of `required` to compile to expression (rather than to loop) |
231
-
|`--loop-enum=`| max size of `enum` to compile to expression (rather than to loop) |
232
-
|`--own-properties`| only validate own properties (not relevant for JSON, but can have effect for JavaScript objects) |
233
-
| Code generation |
234
-
|`--code-es5`| generate ES5 code |
235
-
|`--code-lines`| generate multi-line code |
236
-
|`--code-optimize=`| disable optimization (`false`) or number of optimization passes (1 pass by default) |
237
-
|`--code-formats=`| code to require formats object (only needed if you generate standalone code and do not use [ajv-formats](https://github.com/ajv-validator/ajv-formats)) |
|`--strict=`|`true`/`false`/`log` - set all [strict mode](https://ajv.js.org/strict-mode.html) restrictions|
263
+
|`--strict-schema=`| log on (`log`) or ignore (`false`) [strict ](https://ajv.js.org/strict-mode.html#prohibit-ignored-keywords) restrictions (the default is to log)|
264
+
|`--strict-tuples=`| throw on (`true`) or ignore (`false`) [strict schema](https://ajv.js.org/strict-mode.html#prohibit-unconstrained-tuples) restrictions (the default is to throw) |
265
+
|`--strict-types=`| throw on (`true`) or ignore (`false`) [strict types](https://ajv.js.org/strict-mode.html#strict-types) restrictions (the default is to log)|
266
+
|`--strict-required=`| throw on (`true`) or log (`log`) [required properties](https://ajv.js.org/strict-mode.html#defined-required-properties) restrictions (the default is to ignore) |
267
+
|`--allow-matching-properties`| allow `properties`[matching patterns](https://ajv.js.org/strict-mode.html#overlap-between-properties-and-patternproperties-keywords) in `patternProperties`|
|`--use-defaults`| replace missing properties/items with the values from default keyword|
279
+
|`--coerce-types`| change type of data to match type keyword|
280
+
| Advanced |
281
+
|`--multiple-of-precision`| precision of multipleOf, pass integer number|
282
+
|`--messages=false`| do not include text messages in errors|
283
+
|`--loop-required=`| max size of `required` to compile to expression (rather than to loop)|
284
+
|`--loop-enum=`| max size of `enum` to compile to expression (rather than to loop)|
285
+
|`--own-properties`| only validate own properties (not relevant for JSON, but can have effect for JavaScript objects)|
286
+
| Code generation |
287
+
|`--code-es5`| generate ES5 code|
288
+
|`--code-lines`| generate multi-line code|
289
+
|`--code-optimize=`| disable optimization (`false`) or number of optimization passes (1 pass by default)|
290
+
|`--code-formats=`| code to require formats object (only needed if you generate standalone code and do not use [ajv-formats](https://github.com/ajv-validator/ajv-formats))|
238
291
239
292
Options can be passed using either dash-case or camelCase.
0 commit comments