-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add @PartFilename config - on/off, value, value suffix #452
Conversation
@patr1kt0th for you to run the RESTEasy Reactive tests locally: cd integration-tests
mvn clean install -Presteasy-reactive
mvn verify -Presteasy-reactive |
@hbelmiro thanks, I've already prepared a "fix" and split the test classes (classic & reactive), but I was/am fighting with a compilation error, so I'll try your suggestion this evening and let's see... will get back to you as soon as I have something new |
@hbelmiro, @ricardozanini, please check. It worked locally, so hopefully there won't be any problems. But I have one question... I did the new config options in a similar way the others are done, but I was thinking whether it wouldn't be better to put all PartFilename related config under a
What do you think? |
.../java/io/quarkiverse/openapi/generator/deployment/wrapper/OpenApiClientGeneratorWrapper.java
Outdated
Show resolved
Hide resolved
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.
Thank you for this contribution @patr1kt0th. Very good job!
I just left a comment regarding where you placed the dependencies for the test.
And one picky suggestion: it seems you can avoid code duplication in tests. Maybe using parameterized tests or just extracting common parts to a different method. IDK, it's up to you and totally optional. If you want to leave it as it is, that's fine for me.
<dependency> | ||
<groupId>org.jboss.resteasy</groupId> | ||
<artifactId>resteasy-multipart-provider</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-reactive-common</artifactId> | ||
</dependency> |
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.
We declare dependencies that are specific for RESTEasy Reactive or Classic in its equivalent profile in integration-tests/pom.xml. I'm not sure about resteasy-multipart-provider
, but you can move at least quarkus-resteasy-reactive-common
to there.
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 for the info, I noticed it, but I did not want to put them there, as they're (only) relevant to the part-filename
tests and I didn't want to influence the rest of the tests.
I need them to be able to compile the tests as they're checking both types of annotations and I couldn't figure out, how to do it in a more elegant way. Or maybe I'm just doing something wrong?
Btw. I think the quarkus-resteasy-reactive-common
should already be part of quarkus-rest-client-reactive-jackson
which you already have there.
Thanks for the feedback, @hbelmiro. I fully agree with the picky suggestion... I didn't want to spend too much time with it, I assume. But I improved it a bit, please check. I also fixed the typo and the README's format and I tried to implement the suggestion I made earlier = introducing the |
Oh, I just noticed I messed up the README.md file. @hbelmiro, can you please tell me what kind of MD settings you use in IntelliJ? Is it documented somewhere? Thanks. |
@patr1kt0th we don't have any specific MD settings. As long as you don't mess it up too much, that's fine (which doesn't seem to be the case 😆). |
Thanks @hbelmiro, I reverted the messed-up formatting and hopefully fixed all the issues it caused. |
deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/CodegenConfig.java
Outdated
Show resolved
Hide resolved
...in/java/io/quarkiverse/openapi/generator/deployment/codegen/OpenApiGeneratorCodeGenBase.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Ricardo Zanini <[email protected]>
Thanks for the review and the suggestions/fixes @ricardozanini 👍 |
@hbelmiro as your leave gift, can u take a final look? |
@all-contributors please add @patr1kt0th for code |
I've put up a pull request to add @patr1kt0th! 🎉 |
* Add @PartFilename config - on/off, value, value suffix * Split PartFilenameTest into classic and reactive * Get rid of code duplicity in tests, fix README.md * Revert messed up README.md formatting * Apply suggestions from code review Co-authored-by: Ricardo Zanini <[email protected]> --------- Co-authored-by: Ricardo Zanini <[email protected]>
* Add @PartFilename config - on/off, value, value suffix (#452) * Add @PartFilename config - on/off, value, value suffix * Split PartFilenameTest into classic and reactive * Get rid of code duplicity in tests, fix README.md * Revert messed up README.md formatting * Apply suggestions from code review Co-authored-by: Ricardo Zanini <[email protected]> --------- Co-authored-by: Ricardo Zanini <[email protected]> * Replaced jakarta with javax Fixed version --------- Co-authored-by: Patrik Toth <[email protected]> Co-authored-by: Ricardo Zanini <[email protected]> Co-authored-by: Helber Belmiro <[email protected]>
Thanks for your cooperation, guys 🤝 |
@all-contributors please add @patr1kt0th for code |
I've put up a pull request to add @patr1kt0th! 🎉 |
Fixes: #435