-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Query] Dynamic Querystring Parameters implemented #435
[Query] Dynamic Querystring Parameters implemented #435
Conversation
… into dynamic-query
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #435 +/- ##
==========================================
+ Coverage 95.41% 95.89% +0.47%
==========================================
Files 70 71 +1
Lines 3406 3853 +447
==========================================
+ Hits 3250 3695 +445
Misses 114 114
- Partials 42 44 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
The implementation, tests, and documentation updates look good. Great work as usual @JeremyBP
As mentioned in a comment below, I have mixed feelings about --dynamic-querystring-parameters-threshold
, which I think should be refactored to be a boolean flag instead. Perhaps something called --dynamic-query-string-parameters
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.
@JeremyBP Please include #nullable enable
in the generated code when generating dynamic query string parameter wrappers
here are most of your suggestions implemented. But about the refitter https://petstore3.swagger.io/api/v3/openapi.yaml Again I'm a bit tired the day before my holidays, so I could missunderstand something here. |
You have a point @JeremyBP, and with that in mind, I think that always adding |
|
Here is our nullable enable 👼 |
Thanks for this awesome contribution @JeremyBP Enjoy your well-deserved summer holiday! |
Well, first of all, my apologies about such a git log. It was a rebasing spagetti nigthmare as I decided to start from the
apizr
branch instead of themain
one. It gives that over commiting git log, but actually brings no other changes than the Dynamic Querystring Parameters feature implementation, plus some specific Apizr code adjustments.I think I really need holidays :)
That said, the main change here to reach our goal as discussed into #417 is about the ParameterExtractor.
When the threshold is set to 2 or more, it now returns the filtered parameters to be added to the method, plus the query params types to be created under interfaces.
It works with or without Apizr as it has no dependency with it.
It comes with many new tests to cover it and an updated documentation.
It's once again a big fat fish to descover, understand and test before merging.
Again, sorry about my git rebase marmelade gift ^^