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: allParamsOptional implemented in params and props #1361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wouterkroes
Copy link
Contributor

@wouterkroes wouterkroes commented May 8, 2024

Status

Ready

Fix #1322

Description

  • Enhanced the current build setting allParamsOptional (refer to Build setting allParamsOptional is not working as expected #1322).
  • Fixed/removed the TODO comment (Maybe ensure that 'paramType' isn't already undefined or null). In my view, optional signifies a property marked with a ?, rather than extending the type with | undefined | null.

I experimented with these adjustments locally in a playground project using Orval clients: default (axios), vue-query, and Angular.
I have created a draft PR to ensure that my changes pass all the pipeline tests.
These adjustments are to the core, so I hope that by testing them with all the mentioned setups, I have thoroughly validated my changes.

Please feel free to double-check before approving my PR

Related PRs

n/a

Todos

n/a

Steps to Test or Reproduce

n/a

@wouterkroes wouterkroes marked this pull request as ready for review May 8, 2024 08:14
@melloware melloware added the bug Something isn't working label May 8, 2024
@melloware melloware added this to the 6.28.0 milestone May 8, 2024
@melloware
Copy link
Collaborator

@Maxim-Mazurok you were recently in there as well want to give these a review?

Copy link
Collaborator

@Maxim-Mazurok Maxim-Mazurok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag was working as intended, consider updating docs and/or creating a new config flag. See #1322 (comment)

@melloware melloware modified the milestones: 6.28.0, 6.29.0, 6.30.0 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build setting allParamsOptional is not working as expected
3 participants