Skip to content

Fix: Only generate optional parameters if present#1095

Merged
jamietanna merged 1 commit intomasterfrom
defect/params
Jun 8, 2023
Merged

Fix: Only generate optional parameters if present#1095
jamietanna merged 1 commit intomasterfrom
defect/params

Conversation

@jamietanna
Copy link
Copy Markdown
Member

As with #1062, we found in #1094 that we've got a few other cases where a params = nil can break a generated client.

This adds a safety check to only generate the code if params is present.

Closes #1094.

As with #1062, we found in #1094 that we've got a few other cases where
a `params = nil` can break a generated client.

This adds a safety check to only generate the code if params is present.

Closes #1094.
@jamietanna jamietanna merged commit ad62d73 into master Jun 8, 2023
@jamietanna jamietanna deleted the defect/params branch June 8, 2023 08:45
@jamietanna jamietanna added this to the v0.13.1 milestone Jun 29, 2023
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.

Missing nil-safe checks for header/cookie parameters

1 participant