json-schema-to-typescript
json-schema-to-typescript copied to clipboard
feat: Add `removeOptionalIfDefaultExists` option
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.