mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Pkl Error: Cannot render value of type Listing as Properties.
#94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @linux-china on GitHub (Mar 1, 2024).
I have the schema as following:
and configuration:
when run
pkl eval -f properties application.pkland got the stackstrace:I think pkl properties render could adopt list style.
@stackoverflow commented on GitHub (Mar 1, 2024):
It's not clear how one would want a
List/Listingrendered to properties.A
foo = List(1, 2, 3)could as well be rendered asfoo=1, 2, 3.That's why you should use a converter to decide how you want these classes to be handled.