mirror of
https://github.com/apple/pkl.git
synced 2026-05-28 01:29:15 +02:00
Add support for rendering Bytes values with YamlRenderer (#1276)
This commit is contained in:
@@ -18,6 +18,9 @@ res13 = new Dynamic { name = "pigeon"; age = 30 }
|
||||
res14 = new Person { name = "pigeon" }
|
||||
res15 = null
|
||||
res16 = Pair(1, 2)
|
||||
res17 = Bytes()
|
||||
res18 = Bytes(1, 2, 3)
|
||||
res19 = IntSeq(0, 127).toList().toBytes()
|
||||
|
||||
output {
|
||||
renderer = new YamlRenderer {
|
||||
|
||||
@@ -18,6 +18,7 @@ res13 = new Dynamic { name = "pigeon"; age = 30 }
|
||||
res14 = new Person { name = "pigeon"; age = 30 }
|
||||
res15 = null
|
||||
res16 = Pair(1, 2)
|
||||
res17 = Bytes(1, 2, 3)
|
||||
|
||||
output {
|
||||
renderer = new YamlRenderer {
|
||||
@@ -38,6 +39,7 @@ output {
|
||||
[Null] = (it) -> "converted"
|
||||
[Pair] = (it) -> "converted"
|
||||
[IntSeq] = (it) -> "converted"
|
||||
[Bytes] = (it) -> "converted"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,3 +37,6 @@ res15: String
|
||||
res16:
|
||||
- 2
|
||||
- 3
|
||||
res17: !!binary ''
|
||||
res18: !!binary AQID
|
||||
res19: !!binary AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn8=
|
||||
|
||||
@@ -13,3 +13,4 @@ res13: converted
|
||||
res14: converted
|
||||
res15: converted
|
||||
res16: converted
|
||||
res17: converted
|
||||
|
||||
Reference in New Issue
Block a user