E408 Provide a simple way to tag YAML value · Issue #1414 · apple/pkl · GitHub
[go: up one dir, main page]

Skip to content

Provide a simple way to tag YAML value #1414

@HT154

Description

@HT154

YAML tags are a way to attach additional application-specific type information to YAML values. It would be nice to be able to have Pkl produce YAML tags.

This might be done by adding a new class in pkl:yaml:

class TagDirective {
  tag: String(startsWith("!"))
  value: Any
}

When YamlRenderer encounters this type, it would render tag as a YAML tag then render value as if the TagDirective was not present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0