You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement related to a problem? Please describe.
One of the arguments some people use who don’t like YAML, is that types are hard to deal with in YAML. Some strings need to be quoted in YAML, whereas others do not. I think this might be useful to them.
Describe the solution you would like
Based on schema validation, add quick actions to convert:
true or false to 'true' or 'false' if a string is expected
null to 'null' if a string is expected
Numbers to numeric strings if a string is expected
Dates and datetimes to strings if a string is expected
'true' or 'false' to true or false to if a boolean is expected
'null' or '' (empty string) to null if a null type is expected
Numeric strings to numbers if a number is expected
Single line objects to a quoted string if a string is expected
Multi line objects to a multiline string if a string is expected
Any invalid value to a valid value if an enum is expected
Describe alternatives you have considered
Autofix would also be possible, but I think the user should be in control.
Additional context
The text was updated successfully, but these errors were encountered:
Is your enhancement related to a problem? Please describe.
One of the arguments some people use who don’t like YAML, is that types are hard to deal with in YAML. Some strings need to be quoted in YAML, whereas others do not. I think this might be useful to them.
Describe the solution you would like
Based on schema validation, add quick actions to convert:
true
orfalse
to'true'
or'false'
if a string is expectednull
to'null'
if a string is expected'true'
or'false'
totrue
orfalse
to if a boolean is expected'null'
or'' (empty string)
tonull
if a null type is expectedDescribe alternatives you have considered
Autofix would also be possible, but I think the user should be in control.
Additional context
The text was updated successfully, but these errors were encountered: