Skip to content

Can PKL be used to validate JSON/YAML documents? #195

Answered by bioball
dtjm asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

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

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