Skip to content

fix: configure reflection for REST client data classes - #824

Merged
fhussonnois merged 1 commit into
streamthoughts:mainfrom
jeroen92:jeroen/cli-serialization-errors
Sep 26, 2026
Merged

fhussonnois merged 1 commit into
streamthoughts:mainfrom
jeroen92:jeroen/cli-serialization-errors

Conversation

@jeroen92

Copy link
Copy Markdown

ResourceListRequest lacked reflection config, causing Jackson serialization to fail (No serializer found for class io.jikkou.rest.data.ResourceListRequest).

This commit enables reflection for all publicConstructors/publicMethods for data classes used by the API client (ResourceListRequest, ResourceReconcileRequest, ResourceReconcileRequest$Params, ErrorResponse, ErrorEntity, Info).

@fhussonnois fhussonnois left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @jeroen92 , thanks for catching this!

We don't usually add Jikkou classes to reachability-metadata.json. We annotate them with @Reflectable instead, and JikkouRuntimeReflectionRegistrationFeature registers them at native build time. ErrorResponse, ErrorEntity and Info already have it, so only ResourceListRequest, ResourceReconcileRequest and ResourceReconcileRequest.Params were missing it.

Could you drop the JSON changes and just add @Reflectable to those three?

Thank you

ResourceListRequest, ResourceReconcileRequest and ResourceReconcileRequest.Params
were missing the @reflectable annotation, causing Jackson serialization to fail
(No serializer found for class ResourceListRequest).
@jeroen92
jeroen92 force-pushed the jeroen/cli-serialization-errors branch from baffbd8 to 4345754 Compare September 25, 2026 10:34
@jeroen92

Copy link
Copy Markdown
Author

Hey, that makes a lot of sense, much nicer to do it that way indeed. I've updated the PR!

@fhussonnois fhussonnois left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thank you very much for your contribution.

@fhussonnois
fhussonnois merged commit 3f58f95 into streamthoughts:main Sep 26, 2026
1 of 2 checks passed
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.

2 participants