Skip to content

[GitHub Bot] Generated java SDK#145

Open
mpragosa-te wants to merge 1 commit intomainfrom
20260205-170430
Open

[GitHub Bot] Generated java SDK#145
mpragosa-te wants to merge 1 commit intomainfrom
20260205-170430

Conversation

@mpragosa-te
Copy link
Contributor

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f90019119

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +101 to +105
case "bearer":
deserialized = tree.traverse(jp.getCodec()).readValueAs(BearerTokenAuthentication.class);
newGenericConnectorAuth.setActualInstance(deserialized);
return newGenericConnectorAuth;
case "oauth_client_credentials":

Choose a reason for hiding this comment

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

P2 Badge Align discriminator values with AuthenticationType enum

The GenericConnectorAuth discriminator switch uses values like bearer, oauth_code, and oauth_client_credentials, but the AuthenticationType enum in this module serializes to hyphenated values like bearer-token, oauth-auth-code, and oauth-client-credentials. If the API returns those enum values (or the client sends them), the switch won’t match and the deserializer falls back to schema matching, which can yield multiple matches and throw Failed deserialization for GenericConnectorAuth. Consider updating the discriminator mappings to the enum values (or vice‑versa) so responses with type: bearer-token etc. deserialize reliably.

Useful? React with 👍 / 👎.

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.

1 participant