Skip to content

Fix ENUM yes no values#1038

Merged
msivasubramaniaan merged 5 commits intoredhat-developer:mainfrom
msivasubramaniaan:fix-enum-yes-no
Mar 20, 2025
Merged

Fix ENUM yes no values#1038
msivasubramaniaan merged 5 commits intoredhat-developer:mainfrom
msivasubramaniaan:fix-enum-yes-no

Conversation

@msivasubramaniaan
Copy link
Contributor

@msivasubramaniaan msivasubramaniaan commented Mar 12, 2025

What does this PR do?

This PR suggests ENUM values based on type. Especially on the YAML spec 1.1 Boolean values like on,off,true,false,yes,no

What issues does this PR fix or reference?

fixes #1036

Is it tested? How?

Yes. Added test cases

Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
@msivasubramaniaan msivasubramaniaan marked this pull request as ready for review March 12, 2025 14:33
@coveralls
Copy link

Coverage Status

coverage: 84.137% (-0.05%) from 84.189%
when pulling 76c07e1 on msivasubramaniaan:fix-enum-yes-no
into c1cab4d on redhat-developer:main.

@coveralls
Copy link

coveralls commented Mar 12, 2025

Coverage Status

coverage: 84.136% (-0.05%) from 84.189%
when pulling 79001af on msivasubramaniaan:fix-enum-yes-no
into c1cab4d on redhat-developer:main.

Copy link
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something that might be worth addressing, but otherwise works well from my testing.

Copy link
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Thanks, Muthu!

@msivasubramaniaan msivasubramaniaan merged commit 11eff5f into redhat-developer:main Mar 20, 2025
4 checks passed
@msivasubramaniaan msivasubramaniaan deleted the fix-enum-yes-no branch March 20, 2025 13:03
@jeremyfiel
Copy link

Thanks for a quick turn around on this.

@kevinkinyuasonos
Copy link

I'd like to follow up on this PR and see when the update will be available for the YAML extension in VS Code?

@jeremyfiel
Copy link

@msivasubramaniaan can you point us to information about the release schedule of this project?

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 this pull request may close these issues.

Enum strings YES / NO are converted to boolean incorrectly

5 participants