question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verifying file with multiple documents of different types

See original GitHub issue

Issue Description

Thanks for Yamale!

Have used for a few projects already, but now have a problem. I have a file with several yaml documents, of differing types.

kind: foo
# ... more content corresponding to type foo
---
kind: bar
# ... more content corresponding to type bar
---
...

[Although they aren’t, one could picture them as kubernetes manifests, for instance.]

Depending on the kind parameter, I want to validate each document against one of several schemas. How can I best accomplish this with Yamale?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
mildebrandtcommented, Sep 13, 2020

In your multi-doc string, you need to use three dashes to separate documents.

The other is a bug which is covered here: https://github.com/23andMe/Yamale/issues/137

0reactions
mildebrandtcommented, Sep 14, 2020

That is interesting. I think we still need to be clearer in our error reporting when a user wouldn’t use final. Can you please open a separate issue for the final parameter, and we’ll mark it as an enhancement request to continue the discussion there. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Combining Multiple Documents into a Single PDF File
Multiple files (optionally even different types of files) can be combined into a single Adobe PDF file by using Create PDF From Multiple...
Read more >
Check out, check in, or discard changes to files in a ...
To check in multiple files at once​​ Follow these steps. In the document library, select all the files you want to check in...
Read more >
How to check and verify file integrity - TechTarget
Steps to check and verify file integrity · Based on a comparison of file names, do all the expected files show up? ·...
Read more >
Validating digital signatures, Adobe Acrobat
To automatically validate all signatures in a PDF when you open the document, select Verify Signatures When The Document Is Opened.
Read more >
How to Search Text in Multiple Files in Linux - SeekFast Blog
Grep can search in all kinds of text files (.txt, .html, .xml, etc.) ... Check the "Containing" checkbox, enter your search words and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found