ts-openapi-codegen 2.1.0-beta.1 → 2.1.0-beta.2

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
@@ -73,6 +73,8 @@ openapi generate --input ./spec.json --output ./dist
73
73
  | `--useCancelableRequest` | - | boolean | `false` | Use cancelable promise as return type |
74
74
  | `--sortByRequired` | `-s` | boolean | `false` | Use extended sorting strategy for function arguments |
75
75
  | `--useSeparatedIndexes` | - | boolean | `false` | Use separate index files for core, models, schemas, and services |
76
+ | `--strict-openapi` | - | boolean | `false` | Enable strict OpenAPI diagnostics and fail generation when strict errors are found |
77
+ | `--report-file` | - | string | `./openapi-report.json` | Path to strict OpenAPI diagnostics report JSON file |
76
78
  | `--logLevel` | `-l` | string | `error` | Logging level: `info`, `warn`, or `error` |
77
79
  | `--logTarget` | `-t` | string | `console` | Logging target: `console` or `file` |
78
80
  | `--validationLibrary` | - | string | `none` | Validation library for schema generation: `none`, `zod`, `joi`, `yup`, or `jsonschema` |
@@ -300,6 +302,8 @@ Instead of passing all options via CLI, you can use a configuration file. Create
300
302
  | `useCancelableRequest` | boolean | `false` | Use cancelable promise as return type |
301
303
  | `sortByRequired` | boolean | `false` | Extended sorting strategy for arguments |
302
304
  | `useSeparatedIndexes` | boolean | `false` | Use separate index files |
305
+ | `strictOpenapi` | boolean | `false` | Enable strict OpenAPI diagnostics and fail generation on strict errors |
306
+ | `reportFile` | string | `./openapi-report.json` | Path to strict OpenAPI diagnostics report JSON file |
303
307
  | `items` | array | - | Array of configurations (for multi-options format) |
304
308
  | `validationLibrary` | string | `none` | Validation library for schema generation: `none`, `zod`, `joi`, `yup`, or `jsonschema` |
305
309
  | `emptySchemaStrategy` | string | `keep` | Strategy for empty schemas: `keep`, `semantic`, or `skip` |
package/README.rus.md CHANGED
@@ -72,6 +72,8 @@ openapi generate --input ./spec.json --output ./dist
72
72
  | `--useCancelableRequest` | - | boolean | `false` | Использовать отменяемый promise как тип возврата |
73
73
  | `--sortByRequired` | `-s` | boolean | `false` | Использовать расширенную стратегию сортировки для аргументов функций |
74
74
  | `--useSeparatedIndexes` | - | boolean | `false` | Использовать отдельные index файлы для core, models, schemas и services |
75
+ | `--strict-openapi` | - | boolean | `false` | Включить строгую диагностику OpenAPI и завершать генерацию при strict-ошибках |
76
+ | `--report-file` | - | string | `./openapi-report.json` | Путь к JSON-файлу strict-отчета по диагностике OpenAPI |
75
77
  | `--logLevel` | `-l` | string | `error` | Уровень логирования: `info`, `warn`, или `error` |
76
78
  | `--logTarget` | `-t` | string | `console` | Цель логирования: `console` или `file` |
77
79
  | `--validationLibrary` | - | string | `none` | Библиотека валидации для генерации схем: `none`, `zod`, `joi`, `yup`, или `jsonschema` |
@@ -299,6 +301,8 @@ openapi analyze-diff --input ./openapi/spec.yaml --git HEAD~1
299
301
  | `useCancelableRequest` | boolean | `false` | Использовать отменяемый promise как тип возврата |
300
302
  | `sortByRequired` | boolean | `false` | Расширенная стратегия сортировки для аргументов |
301
303
  | `useSeparatedIndexes` | boolean | `false` | Использовать отдельные index файлы |
304
+ | `strictOpenapi` | boolean | `false` | Включить строгую диагностику OpenAPI и падать на strict-ошибках |
305
+ | `reportFile` | string | `./openapi-report.json` | Путь к JSON-файлу strict-отчета по диагностике OpenAPI |
302
306
  | `items` | array | - | Массив конфигураций (для формата multi-options) |
303
307
  | `validationLibrary` | string | `none` | Библиотека валидации для генерации схем: `none`, `zod`, `joi`, `yup`, или `jsonschema` |
304
308
  | `emptySchemaStrategy` | string | `keep` | Стратегия для пустых схем: `keep`, `semantic`, или `skip` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-openapi-codegen",
3
- "version": "2.1.0-beta.1",
3
+ "version": "2.1.0-beta.2",
4
4
  "description": "Library that generates Typescript clients based on the OpenAPI specification. It bases on openapi-typescript-codegen",
5
5
  "author": "Alexey Zverev",
6
6
  "homepage": "https://github.com/ozonophore/openapi-codegen.git",