Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

[BUG] String enum of '08' and '09 ' are wrong bundled #88

Open
@AlfaCoder

Description

@AlfaCoder

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

swagger-cli version
4.0.4

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions