Skip to content

YamlRenderer does not quote possibly-sexigesimal strings with leading 0s, incompatible with some parsers #1543

@faevourite

Description

@faevourite

Dependabot seems to require the time field to be quoted. If used like this:

amends "package://pkg.pkl-lang.org/pkl-pantry/com.github.dependabot@1.0.1#/v2/Dependabot.pkl"
updates {
  new {
    // ...
    schedule {
      interval = "weekly"
      date = "monday"
      time = "04:00"
    }
  }
}

The resulting yml after pkl eval -f yaml depandabot.pkl > dependabot.yml doesn't quote the "time" field and the following error is returned by GH's Dependabot action:

The property '#/updates/1/schedule/time' of type integer did not match the following type: string

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