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

enums with single values should be "const" #534

Closed
lublak opened this issue Apr 11, 2023 · 0 comments · Fixed by #535
Closed

enums with single values should be "const" #534

lublak opened this issue Apr 11, 2023 · 0 comments · Fixed by #535

Comments

@lublak
Copy link
Contributor

lublak commented Apr 11, 2023

export interface Test {
    "testfield": "test"
}

i get a result like this:

"testfield": {
    "enum": [
        "test"
    ],
    "type": "string"
},

but it should look like this:

"testfield": {
    "const": "test",
    "type": "string"
},
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

Successfully merging a pull request may close this issue.

1 participant