Skip to content

Feature: Syntax checking/Validation subcommand #63

@tomjn

Description

@tomjn

Sometimes it's enough to just know if a YAML file is a valid YAML file

It would be nice to have a subcommand that just loaded the YAML file/stdin and returned a good exit code, or a bad one with a syntax error.

We have a GH action that we'd like to validate a YAML file doesn't contain syntax errors ( a contributor made a mistake in a PR that made the document invalid and broke things ). We could try to retrieve a value from the file but to do this we need to assume certain things about the files contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions