-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Hyphenate @RestHeader sourceName by default #16003
Conversation
.../common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/StringUtil.java
Outdated
Show resolved
Hide resolved
46f82d8
to
6bda1d2
Compare
.../common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/StringUtil.java
Outdated
Show resolved
Hide resolved
.../common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/StringUtil.java
Outdated
Show resolved
Hide resolved
6bda1d2
to
7511fde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll let @geoand have the final say on this PR |
Thanks for this! I have a question though: what happens if the user actually sets a value in the |
According to https://github.com/quarkusio/quarkus/pull/16003/files#diff-81713f62adc649d447ab44049899a4edd826be9be784b1aa3b654b4a22febf44R825 I think it will use what's defined there. @jjaferson can we avoid calling the |
Good catch, that makes seems, I added a check to verify if the rest param is set before hyphenating it. |
7511fde
to
3442127
Compare
no problem, that would be hyphenated again but now I added a check to verify if the restParam was set. |
We would also need a test for this behavior as well |
...on/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java
Outdated
Show resolved
Hide resolved
3442127
to
71b0595
Compare
added tests for all the cases - when the @restParam isn't specified and when it's empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Huh, I was meaning to review this PR, but never got notified, so I didn't know it was filed. Don't we get |
I mean, your reviews were good, I wouldn't have done it differently, but I'm surprised I didn't get notified. |
There is no notification from the bot on PRs unfortunately |
Sorry @FroMage I should have pinged you on the PR, I thought you would be notified when I added the reference to the issue you created... |
Is this on purpose, or due to a limitation, or just that we're missing a bot action? |
Likely the latter. Something maybe that @SaumyaSingh1 can work on if @gsmet agrees? |
Sure :) |
Yeah, great idea! |
Hyphenate @RestHeader sourceName by default
Resolves #13665