Skip to content

HelpWanted: Errors in empty disjunction / mismatched types string and struct #2861

Answered by rozaliev
ptr1120 asked this question in Q&A
Discussion options

You must be logged in to vote

Quick fix:

#SecretConfig: [Name=_]: #SecretConfigItem & {name: Name}

#SecretConfigItem: {
	name:  string
	key:   string & !=""
	value: string & !=""
}

#Secret: {
	config: #SecretConfigItem
	...

You have a struct containing multiple items, where #Secret expects a single input.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ptr1120
Comment options

Answer selected by ptr1120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants