json-schema-to-typescript icon indicating copy to clipboard operation
json-schema-to-typescript copied to clipboard

feat: Add `removeOptionalIfDefaultExists` option

Open Rac75116 opened this issue 1 month ago • 1 comments

Fixes #558

This PR adds a new option, removeOptionalIfDefaultExists, which allows the code generator to omit the optional modifier for properties that have a default value in the JSON Schema. The enhancement includes updates to the CLI, documentation, and core parsing logic, and is covered by new end-to-end tests.

Rac75116 avatar Oct 25 '25 17:10 Rac75116