json-schema-to-typescript
                                
                                 json-schema-to-typescript copied to clipboard
                                
                                    json-schema-to-typescript copied to clipboard
                            
                            
                            
                        add `readonly` option
feat: add readonly option to prepend readonly to fields
This feature adds a new readonly option to json-schema-to-typescript, enabling users to prepend readonly to all fields in generated TypeScript interfaces.
Changes:
- Added logic to prepend readonlyto fields ingenerator.ts.
- Updated the Optionsinterface to include the newreadonlyflag.
- Updated README to document the readonlyoption.
Testing:
- Added test cases to validate the readonlyoption.
- Ensured all existing tests pass to maintain backward compatibility.
Closes #627