JSONSchema for HELM template #895
Unanswered
UnleashSpirit
asked this question in
Q&A
Replies: 1 comment
-
The Also, what you're trying to build might already exist in https://www.schemastore.org |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm playing with json schema to write an input help for helm values and templates.
In my case, using RedHat Yaml VSCode extension (so basicaly draft07)
I'm wondering how to describe an helm value like
foo: {{ .Value.bar }}
If I use
"type": "string"
, I got an error cause it's not considered as a string, "Incorrect type. Expected "string""If I use
"type": "object"
, it's working, at least no error, but not pretty accurate. I can write almost everything.Sometimes, depending on what my helm value does, I can use
string
andfoo: "{{ .Value.bar }}"
this works cause of the helm value between"
I tried string with pattern but as it's not considred as a string it fails
Any idea to define that
foo: {{ .Value.bar }}
in json schema type ?Beta Was this translation helpful? Give feedback.
All reactions