Add "schema validate" command 63/14363/8
authorAric Gardner <agardner@linuxfoundation.org>
Tue, 29 Jan 2019 20:25:44 +0000 (15:25 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sun, 10 Feb 2019 16:49:41 +0000 (11:49 -0500)
commitec597668be38d37cd010b845bee14ff580c73c75
tree6d87130ba5db9a5e328e5b27eeb03cfa4d189c10
parente6842f22a65e7229cbaed09a7995925dbc3b0d92
Add "schema validate" command

This command will validate a yaml file
based on a schema file

Issue: RELENG-1685
Change-Id: I59d427ff52ff61be3df9b1413828ff13b814653a
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
13 files changed:
.coafile
docs/commands/index.rst
docs/commands/schema.rst [new file with mode: 0644]
lftools/cli/__init__.py
lftools/cli/schema.py [new file with mode: 0644]
lftools/schema.py [new file with mode: 0644]
releasenotes/notes/schema-validate-1e5793a8dc859ecf.yaml [new file with mode: 0644]
requirements.txt
tests/fixtures/schema/ipv6-broken.yaml [new file with mode: 0644]
tests/fixtures/schema/release-broken.yaml [new file with mode: 0644]
tests/fixtures/schema/release.yaml [new file with mode: 0644]
tests/fixtures/schema/schema.yaml [new file with mode: 0644]
tests/test_schema.py [new file with mode: 0644]