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

Add template validation #624

Merged
merged 4 commits into from
Apr 21, 2022
Merged

Commits on Apr 21, 2022

  1. shared/definition: Add DefinitionFilterType

    This adds the DefinitionFilterType type which represents a filter type.
    It also adds validation for these values.
    
    Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
    monstermunchkin committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    d14831c View commit details
    Browse the repository at this point in the history
  2. main: Use UnmarshalStrict

    This will catch invalid keys in the definition file.
    
    Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
    monstermunchkin committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    a237fd5 View commit details
    Browse the repository at this point in the history
  3. main: Add validate sub-command

    Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
    monstermunchkin committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    d8a67c8 View commit details
    Browse the repository at this point in the history
  4. main: Use DefinitionFilterType

    Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
    monstermunchkin committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    e0fb715 View commit details
    Browse the repository at this point in the history