Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kcl run --format toml returns wrong data #1792

Open
diefans opened this issue Dec 17, 2024 · 0 comments
Open

kcl run --format toml returns wrong data #1792

diefans opened this issue Dec 17, 2024 · 0 comments
Assignees

Comments

@diefans
Copy link

diefans commented Dec 17, 2024

Bug Report

Using the --format toml option to render TOML instead of YAML returns a wrong result.
Seems like there is a custom/naive toml serializer in place...

1. Minimal reproduce step (Required)

kcl run --format toml /dev/stdin << EOF
schema Bar:

schema Foo:
    b: Bar
    a: str = "a"

Foo {
    b: Bar {}
}
EOF

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

a = "a"

[b]

3. What did you see instead (Required)

[b]
a = "a"

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

kcl version is v0.10.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants