kcl icon indicating copy to clipboard operation
kcl copied to clipboard

Passing yaml encoded KCL to template.execute results in unicode hex charaters being added instead of actual char

Open adrianrademann opened this issue 5 months ago • 0 comments

Bug Report

1. Minimal reproduce step (Required)

import yaml
import template

test = {
    key = template.execute("""{{ _val }}""", {_val: yaml.encode(_val)})
}


_val = {
    config = {
        timeout = "5m"
    }
}

2. What did you expect to see? (Required)

test:
  key: |
    config:
      timout: "5m"

3. What did you see instead (Required)

test:
  key: |
    config:
      timout: '5m'

4. What is your KCL components version? (Required)

0.11.3

adrianrademann avatar Jul 29 '25 13:07 adrianrademann