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

FISH-1068 in generated openapi omit default style for parameter #5335

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

aubi
Copy link
Contributor

@aubi aubi commented Jul 8, 2021

Description

Fix for #5111
The solution is simple -- don't fill style parameter as the value "simple" is incorrect for some usages (e.g. query of header parameters). The standard has meaningful defaults, so it is not necessary to calculate the value based on usage.

Testing

Testing Performed

manually - in the generated openapi is missing "style: simple" in the parameter

I also tried openapi-generator-cli and there is no problem without style.

@aubi
Copy link
Contributor Author

aubi commented Jul 8, 2021

Jenkins test

1 similar comment
@aubi
Copy link
Contributor Author

aubi commented Jul 8, 2021

Jenkins test

Copy link
Contributor

@MarkWareham MarkWareham left a comment

Choose a reason for hiding this comment

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

LGTM

@aubi aubi merged commit 19e3658 into payara:master Jul 9, 2021
@aubi aubi deleted the FISH-1068 branch July 9, 2021 11:25
JamesHillyard pushed a commit to JamesHillyard/Payara that referenced this pull request Oct 28, 2021
FISH-1068 in generated openapi omit default style for parameter
JamesHillyard added a commit to JamesHillyard/Payara that referenced this pull request Dec 22, 2021
JamesHillyard pushed a commit to JamesHillyard/Payara that referenced this pull request Dec 23, 2021
FISH-1068 in generated openapi omit default style for parameter
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.

3 participants