Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate multiple files #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

subpop
Copy link

@subpop subpop commented Jan 24, 2024

Refactor the file loading logic to assume less about the filesystem
format. The schema file must be provided via the -schema flag. Any
additional arguments on the command line are assumed to be documents and
are loaded sequentially before being validated against the given schema.
The special file name "-" is also supported; if present, the document
content is loaded for stdin enabling output to be piped into this
command for validation.

Refactor the file loading logic to assume less about the filesystem
format.  The schema file must be provided via the -schema flag. Any
additional arguments on the command line are assumed to be documents and
are loaded sequentially before being validated against the given schema.
The special file name "-" is also supported; if present, the document
content is loaded for stdin enabling output to be piped into this
command for validation.
validation errors are kept in a map with file basename as a key. When
the output is printed, the -format flag can be used to determine the
output format (json or text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant