Skip to content

feat: add immutable types #1350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

J3MPA
Copy link

@J3MPA J3MPA commented Aug 5, 2025

In a functional codebase consumers of swagger-typescript-api would want to force properties and values to be immutable even if swagger spec does not have readOnly property.

With this change one can simply add --make-immutable or set makeImmutable to force immutable types.

Copy link

changeset-bot bot commented Aug 5, 2025

🦋 Changeset detected

Latest commit: b0b035b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@J3MPA J3MPA changed the title Feat/add default readonly configuration feat: add immutable types Aug 5, 2025
@J3MPA
Copy link
Author

J3MPA commented Aug 6, 2025

@smorimoto I'm a little bit unsure on when to use lodash or not in the lib, seems like there is no clear pattern on when it's applied or not.

Do you have time to review the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant