ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

Authentication configs not set correctly during client generation #6655

Closed KamalikaSene closed 4 months ago

KamalikaSene commented 4 months ago

Description: The client.bal generated using the openapi specification for discord resulted in a bug where when generating the client the authentication related configs are not properly set.

Steps to reproduce: Link to the generated client (line 58) - https://github.com/KamalikaSene/module-ballerinax-discord/blob/main/ballerina/client.bal

config.auth = <OAuth2ClientCredentialsGrantConfig|http:BearerTokenConfig|OAuth2RefreshTokenGrantConfig>config.auth;

Link to the OpenAPI spec - https://github.com/KamalikaSene/module-ballerinax-discord/blob/main/ballerina/openapi.json

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

github-actions[bot] commented 4 months ago

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.