# Buildkite pipeline upload translates unquoted yes to boolean true

**URL:** <https://forum.buildkite.community/t/buildkite-pipeline-upload-translates-unquoted-yes-to-boolean-true/1819>\
**Category:** General\
**Created:** [December 10, 2021, 8:58pm UTC](https://forum.buildkite.community/t/buildkite-pipeline-upload-translates-unquoted-yes-to-boolean-true/1819 "2021-12-10T20:58:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![l4stewar](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@l4stewar](https://forum.buildkite.community/u/l4stewar)\
**Post date:** [December 10, 2021, 8:58pm UTC](https://forum.buildkite.community/t/buildkite-pipeline-upload-translates-unquoted-yes-to-boolean-true/1819/1 "2021-12-10T20:58:17Z")

</div>

Hi,

Ive noticed that buildkite pipeline upload translates unquoted yes to boolean true. To test, upload pipeline with a field, say an env mapping as ENVVAR: yes.

I can see this is happening because i print the pipeline before upload, and then i compare with the piepline thats displayed in the timeline tab.

Is this a known issue?

Thanks.

---

<div class="post-metadata">

**Author:** ![jeremy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jeremy/32/1040_2.png) [@jeremy](https://forum.buildkite.community/u/jeremy)\
**Post date:** [December 10, 2021, 10:55pm UTC](https://forum.buildkite.community/t/buildkite-pipeline-upload-translates-unquoted-yes-to-boolean-true/1819/2 "2021-12-10T22:55:19Z")

</div>

Hi there!

This is actually expected behaviour. When unquoted, YAML treats `yes` as a boolean because it is considered a YAML keyword. If you enclose `yes` in quotes, it becomes a string.

Hope that helps!

Jeremy

---

<div class="post-metadata">

**Author:** ![l4stewar](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@l4stewar](https://forum.buildkite.community/u/l4stewar)\
**Post date:** [December 12, 2021, 7:45pm UTC](https://forum.buildkite.community/t/buildkite-pipeline-upload-translates-unquoted-yes-to-boolean-true/1819/3 "2021-12-12T19:45:35Z")

</div>

Understood. However it seems to be the case that this is a yaml 1.1 thing, and in the recent spec its been constrained.

> <https://stackoverflow.com/questions/53648244/specifying-the-string-value-yes-in-a-yaml-property>

Just an fyi.

My problem is that my yaml generator (cue) wont quote properly when i tell it to.
