json-schema-to-typescript
Advanced tools
Comparing version 13.0.0 to 13.0.1
@@ -5,2 +5,6 @@ # Changelog | ||
## 13.0.1 | ||
- b13a6f2 Bugfix: Boolean CLI flags were not respected (#524) | ||
## 13.0.0 | ||
@@ -7,0 +11,0 @@ |
@@ -80,3 +80,15 @@ #!/usr/bin/env node | ||
output: ['o'] | ||
} | ||
}, | ||
boolean: [ | ||
'additionalProperties', | ||
'declareExternallyReferenced', | ||
'enableConstEnums', | ||
'format', | ||
'ignoreMinAndMaxItems', | ||
'strictIndexSignatures', | ||
'unknownAny', | ||
'unreachableDefinitions' | ||
], | ||
default: index_1.DEFAULT_OPTIONS, | ||
string: ['bannerComment', 'cwd'] | ||
})); | ||
@@ -83,0 +95,0 @@ function main(argv) { |
{ | ||
"name": "json-schema-to-typescript", | ||
"version": "13.0.0", | ||
"version": "13.0.1", | ||
"description": "compile json schema to typescript typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -94,6 +94,6 @@ # json-schema-to-typescript [![Build Status][build]](https://github.com/bcherny/json-schema-to-typescript/actions?query=branch%3Amaster+workflow%3ACI) [![npm]](https://www.npmjs.com/package/json-schema-to-typescript) [![mit]](https://opensource.org/licenses/MIT) | ||
| maxItems | number | `20` | Maximum number of unioned tuples to emit when representing bounded-size array types, before falling back to emitting unbounded arrays. Increase this to improve precision of emitted types, decrease it to improve performance, or set it to `-1` to ignore `maxItems`. | ||
| strictIndexSignatures | boolean | `false` | Append all index signatures with `\| undefined` so that they are strictly typed. | | ||
| style | object | `{ bracketSpacing: false, printWidth: 120, semi: true, singleQuote: false, tabWidth: 2, trailingComma: 'none', useTabs: false }` | A [Prettier](https://prettier.io/docs/en/options.html) configuration | | ||
| unknownAny | boolean | `true` | Use `unknown` instead of `any` where possible | | ||
| unreachableDefinitions | boolean | `false` | Generates code for `$defs` that aren't referenced by the schema. | | ||
| strictIndexSignatures | boolean | `false` | Append all index signatures with `\| undefined` so that they are strictly typed. | | ||
| $refOptions | object | `{}` | [$RefParser](https://github.com/BigstickCarpet/json-schema-ref-parser) Options, used when resolving `$ref`s | | ||
@@ -100,0 +100,0 @@ ## CLI |
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
import {join, resolve, dirname, basename} from 'path' | ||
import {compile, Options} from './index' | ||
import {compile, DEFAULT_OPTIONS, Options} from './index' | ||
import {pathTransform, error} from './utils' | ||
@@ -20,3 +20,15 @@ | ||
output: ['o'] | ||
} | ||
}, | ||
boolean: [ | ||
'additionalProperties', | ||
'declareExternallyReferenced', | ||
'enableConstEnums', | ||
'format', | ||
'ignoreMinAndMaxItems', | ||
'strictIndexSignatures', | ||
'unknownAny', | ||
'unreachableDefinitions' | ||
], | ||
default: DEFAULT_OPTIONS, | ||
string: ['bannerComment', 'cwd'] | ||
}) | ||
@@ -23,0 +35,0 @@ ) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
2370739
13679
0