Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP client SDK response elements are re-written and converted to lower case in all models #12364

Open
Acerigger opened this issue Mar 26, 2024 · 0 comments

Comments

@Acerigger
Copy link

Description

Our API input specifies input fields in mixed case, such as, SO_SystemID. The generated model's $attributeMap has the entry, which matches our API response:

/**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $attributeMap = [
        'so_system_id' => 'SO_SystemID',

However, the SDK response returns the lower-case element name, which is not what is expected.

Swagger-codegen version

3.0.54

Swagger declaration file content or url
Command line used for generation

I don't have the command line, we use SwaggerHub to Export a PHP client SDK.

Steps to reproduce

Use SwaggerHub Export after importing a valid YAML file.

Related issues/PRs

Nothing found.

Suggest a fix/enhancement

We need the SDK to respond with the CamelCase fields returned by our API.

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

No branches or pull requests

1 participant