Can't figure out how YAML maps work #1777
Answered
by
verdverm
skorokithakis
asked this question in
General
-
I have this CUE schema: #Apps: {
[string]: #App
#App: {
enabled?: bool
url: string
branch?: string
environment_file?: string
environment?: {string: string}
replacements?: {string: string}
compose_config?: [...string] | string
}
}
apps: #Apps
config: {prune: bool} I'm trying to validate this YAML file: apps:
bar:
url: https://example.com/stavros/foo.git
environment:
FOO: bar However, I get an error:
I don't know why, since I have the map defined. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
verdverm
Jun 29, 2022
Replies: 1 comment 4 replies
-
You have a map of apps defined, however the following environment?: {string: string}
replacements?: {string: string} should be environment: [string]: string
replacements: [string]: string |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
skorokithakis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have a map of apps defined, however the following
should be