Skip to content

std.parseYaml processes "on" as a boolean #766

Description

@Duologic

I noticed this on go-jsonnet but couldn't replicate with the C or rust version:

➜ cat a.yaml
on: help

➜ jsonnet -e 'std.parseYaml(importstr "a.yaml")'
{
   "true": "help"
}

➜ cjsonnet -e 'std.parseYaml(importstr "a.yaml")'
{
   "on": "help"
}

➜ jrsonnet -e 'std.parseYaml(importstr "a.yaml")'
{
   "on": "help"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions