-
If I have an existing JSON/YAML doc, can it be validated using PKL, or does PKL only support generating JSON/YAML? |
Beta Was this translation helpful? Give feedback.
Answered by
bioball
Feb 21, 2024
Replies: 1 comment 1 reply
-
There's no built-in mechanism for this right now. There's ways that you can use pkl to do this, where you first convert JSON/YAML to Pkl, then eval the resulting Pkl to produce validation errors. For example, take a look at kubeval. We'd like to support this built-in at some point, but it's not on the roadmap at the moment. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dtjm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no built-in mechanism for this right now.
There's ways that you can use pkl to do this, where you first convert JSON/YAML to Pkl, then eval the resulting Pkl to produce validation errors. For example, take a look at kubeval.
We'd like to support this built-in at some point, but it's not on the roadmap at the moment.