Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

allow yes/no as boolean values #384

Closed
wookietreiber opened this issue Jul 28, 2023 · 1 comment
Closed

allow yes/no as boolean values #384

wookietreiber opened this issue Jul 28, 2023 · 1 comment

Comments

@wookietreiber
Copy link

works:

foo: [true|false]

doesn't work:

foo: [yes|no]
... invalid type: string "yes", expected a boolean at line ...
... invalid type: string "no", expected a boolean at line ...

are you open to support yes and no for boolean values? I'd be open to provide a PR if it's not too difficult to implement.


bit of background: I've been doing lots of work with Ansible, which allows yes and no. with Ansible, I'm even encouraging it by disallowing true and false with yamllint because it usually feels/reads more natural when reading/writing Ansible code.

@dtolnay
Copy link
Owner

dtolnay commented Jul 28, 2023

This is a duplicate of #379.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants