Skip to content

[GitHub Bot] Generated java SDK#142

Closed
mpragosa-te wants to merge 1 commit intomainfrom
20260202-143639
Closed

[GitHub Bot] Generated java SDK#142
mpragosa-te wants to merge 1 commit intomainfrom
20260202-143639

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: 63a754c77b

ℹ️ 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 +96 to +113
switch (discriminatorValue) {
case "basic":
deserialized = tree.traverse(jp.getCodec()).readValueAs(BasicAuthentication.class);
newGenericConnectorAuth.setActualInstance(deserialized);
return newGenericConnectorAuth;
case "bearer":
deserialized = tree.traverse(jp.getCodec()).readValueAs(BearerTokenAuthentication.class);
newGenericConnectorAuth.setActualInstance(deserialized);
return newGenericConnectorAuth;
case "oauth_client_credentials":
deserialized = tree.traverse(jp.getCodec()).readValueAs(OauthClientCredentialsAuthentication.class);
newGenericConnectorAuth.setActualInstance(deserialized);
return newGenericConnectorAuth;
case "oauth_code":
deserialized = tree.traverse(jp.getCodec()).readValueAs(OauthCodeAuthentication.class);
newGenericConnectorAuth.setActualInstance(deserialized);
return newGenericConnectorAuth;
case "other":

Choose a reason for hiding this comment

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

P2 Badge Align auth discriminator values with enum tokens

The discriminator switch for GenericConnectorAuth expects type values like bearer, oauth_client_credentials, and other, but the enum used by the auth models serializes to hyphenated values like bearer-token, oauth-client-credentials, and other-token (see AuthenticationType). If the API returns those hyphenated values, the switch falls through and the fallback parsing attempts to match multiple schemas; because required fields are not strictly validated, more than one schema can match and deserialization throws Failed deserialization for GenericConnectorAuth: %d classes match result, expected 1. This will break responses for non-basic auth types unless the discriminator values are aligned.

Useful? React with 👍 / 👎.

@phpinhei-te phpinhei-te closed this Feb 9, 2026
@phpinhei-te phpinhei-te deleted the 20260202-143639 branch February 9, 2026 13:23
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