Changing defaults in Next Major Version v28 #754
Replies: 8 comments 3 replies
|
Please suggest any other breaking changes that would be nice to have in this latest version |
|
@ulrikandersen / @averabaq / @mrhoeve / @acanda please shout if you have ideas of features we should drop, or defaults we should change |
|
We could retire |
I am fine with delegating the job of implementing resiliency to the consumer side 👍 Alternatively this could be a wrapping project to generate more complete SDK style clients for an API, which could include the full shebang. |
|
Thanks, @cjbooms. Jackson 3 as the default makes sense for v28, with a clear migration guide.
Regarding Resilience4j: the current wrapper only provides a circuit breaker. What specifically fell short at work? I would be happy to investigate whether clearer configuration and runtime tests make it worth keeping. Otherwise, I support leaving resilience policies with consumers or a separate SDK layer, as @ulrikandersen suggests.
I also support consistently generating sealed oneOf interfaces, after checking whether any supported cases still need the disabling option. The fixes for #738, #740 and #741 provide useful regression cases. This complements #747: shared contracts would expose common properties across explicitly related allOf/oneOf variants. I have a production response with roughly fifteen variants and mostly need their common schema’s fields. I would introduce this as opt-in; it does not depend on removing the disabling option. Together with #656, the direction is predictable, strongly typed generation across OpenAPI versions, while application policy stays with consumers—as in our Bearer/OAuth2 work (#720, #722). These improvements can remain incremental without holding up v28. |
That makes sense. Maybe add the option
I too have sealed oneOf interfaces always enabled and wouldn't miss the option to disable it.
As I've never used the OkHttp client, I don't have an opinion on this. I almost always use On a somewhat related note, it would be good to consider adding explicit options for the defaults of the type overrides. Currently, there is no way to explicitly specify that I want Fabrikt to use |
|
Thanks @cjbooms! The merged #763 already covers the explicit Jackson versions and type-override pins suggested by @acanda, so I've closed my overlapping #762.
|
|
Thanks all. Great input 🙌 |
Uh oh!
There was an error while loading. Please reload this page.
We have quite a bit of changes, some of them breaking, that have accumulated since the last release v27.15.0
I am going to use this opportunity to change the default for Jackson to Jackson 3.
Also, I am considering dropping support for the Reslience4J wrapper for the OkHttp client.
I actually tried to use it in work and found it half baked and not really providing the resilience features I expected out of the box. I lean towards removing entirely, and letting engineers creare their own wrappers
Does anyone here feel strongly that we should keep it? Could always remove it, and re-introduce if we get any complaints
All reactions