-
I'm trying to get into KCL and right now, I'm struggling to build a schema to represent this simple datastructure: owners:
jdoe:
displayname: "John Doe"
mail: "john@doe.internal"
msomebody:
displayname: "Mike Somebody"
mail: "mike@corp.test" My attempt so far:
The result is:
I've dug now through the documentation and examples for far too long but can't figure out, what I'm doing wrong... |
Beta Was this translation helpful? Give feedback.
Answered by
Peefy
Feb 10, 2024
Replies: 2 comments 2 replies
-
The right code may be schema Owner:
displayname: str
email: str
schema Owners:
[str]: Owner
deploymentOwners = Owners {
"jdoe" = {
displayname = "John Doe"
email = "john@doe.internal"
}
"msomebody" = {
displayname = "Mike Somebody"
email = "mike@corp.test"
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
eliasp
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The right code may be