Skip to content

OpenAPI handler doesn't preserve enum case #3194

Closed
@Eldow

Description

@Eldow

Describe the bug
With the GraphQL handler, enum case is preserved, that's not the case with the openAPI handler.

I tried adding a naming convention transform to work around the issue, but it then breaks operations :

To Reproduce
Point to an openAPI datasource with lowercase enums.

"Animals":{"type":"string","enum":["fox","dog","cat"]}

WIth naming convention enum lowerCase off :
Everything works fine but the generated enums are uppercase.

With naming convention enum lowerCase on :

"message": "Variable \"$_v0_listAnimalsInput\" of required type \"ListAnimalsInput!\" was not provided.",

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions