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

Enum string with special character not quoted in yaml #974

Closed
StefanSrf opened this issue Mar 30, 2023 · 1 comment
Closed

Enum string with special character not quoted in yaml #974

StefanSrf opened this issue Mar 30, 2023 · 1 comment

Comments

@StefanSrf
Copy link

Expected Behavior

Enum-strings with special characters should be quoted in yaml.

Example:

enum class DemoEnum {
    @JsonProperty("escaping-dash")
    ESCAPING_DASH,
    @JsonProperty("noEscaping")
    NO_ESCAPING
}

should result in

    DemoEnum:
      type: string
      enum:
      - 'escaping-dash'
      - noEscaping

Actual Behaviour

Invalid string in yaml, e.g. escaping-dash instead of 'escaping-dash'

    DemoEnum:
      type: string
      enum:
      - escaping-dash
      - noEscaping

Steps To Reproduce

see example in Expected Behavior

Environment Information

  • Ubuntu
  • JDK 11

Example Application

No response

Version

3.8.7

@altro3
Copy link
Collaborator

altro3 commented Mar 30, 2023

@StefanSrf don't need to escape it. This is normal yaml file. You can check it on https://editor.swagger.io
изображение

@altro3 altro3 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2023
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

2 participants