HomePhabricator

Validate configuration after unmarshalling

Authored by dduvall on Nov 3 2017, 12:44 AM.

Description

Validate configuration after unmarshalling

Summary:
Implemented a validation system using the
github.com/go-playground/validator package, extending it with custom
validation tags, and implemented translation of validation errors into
somewhat human-friendly messages.

Fixes T175186
Depends on D845

Test Plan: Run the unit tests and try running blubber against some bad config.

Reviewers: thcipriani, hashar, Jrbranaa, Joe, Release-Engineering-Team, mobrovac

Reviewed By: thcipriani, Release-Engineering-Team

Tags: Release-Engineering-Team

Maniphest Tasks: T175186

Differential Revision: https://phabricator.wikimedia.org/D868

Details

Committed
dduvallNov 7 2017, 8:57 PM
Reviewer
Release-Engineering-Team
Differential Revision
D868: Validate configuration after unmarshalling
Parents
rGBLBR5b5ad0496ff7: Conform to all linter warnings/advice
Branches
Unknown
Tags
Unknown
Tasks
T175186: Blubber config input validation
ChangeId
None