Skip to content
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

fix(core): improve NonReadonly type #1237

Merged
merged 2 commits into from
Feb 25, 2024
Merged

Conversation

ezequiel
Copy link
Contributor

Status

READY

Description

Fixes #1236

Improves the NonReadonly<T> type so it actually works now. Note: this implementation was taken from ts-essentials' DeepWritable, which seem to have the most accurate type as of now

Before

Screenshot 2024-02-25 at 2 58 28 AM

After

image

@ezequiel
Copy link
Contributor Author

Not sure if this affects #616. I can't really make sense of the original issue at the moment. It seems the goal was to turn readonly fields into optional fields? Usually we do this as part of the Swagger model definition itself by making the input body field optional

@melloware melloware merged commit 5b76e3b into orval-labs:master Feb 25, 2024
2 checks passed
ezequiel added a commit to ezequiel/orval that referenced this pull request May 2, 2024
melloware pushed a commit that referenced this pull request May 4, 2024
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.

bug: readonly fields missing from mutation function input types
2 participants