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

[BUG] String enum of '08' and '09 ' are wrong packaged #15329

Closed
AlfaCoder opened this issue Apr 27, 2023 · 1 comment
Closed

[BUG] String enum of '08' and '09 ' are wrong packaged #15329

AlfaCoder opened this issue Apr 27, 2023 · 1 comment

Comments

@AlfaCoder
Copy link

Description

I need enums of strings, but in the builded openapi.yaml I get an incorrect enum-values for '08' and '09'.
The apostrophe in the packaged openapi.yaml is removed for this values... I have no idea

openapi-generator version

6.4.0

OpenAPI declaration file content or url

any-title-here.yml

title: AnyTitleHere
type: string
example: 70
enum:
  - '02'
  - '03'
  - '04'
  - '05'
  - '06'
  - '07'
  - '08'
  - '09'
  - '10'
  - '11'
  - '12'
  - '13'
  - '15'
  - '16'

generated openapi.yaml

title: AnyTitleHere
type: string
example: 70
enum:
  - '02'
  - '03'
  - '04'
  - '05'
  - '06'
  - '07'
  - 08
  - 09
  - '10'
  - '11'
  - '12'
  - '13'
  - '15'
  - '16'
@AlfaCoder
Copy link
Author

the Bug is in swagger-cli located

APIDevTools/swagger-cli#88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant