att-comdev / deckhand

This project has moved to OpenStack.
https://www.airshipit.org/
Apache License 2.0
9 stars 5 forks source link

feat/Pre-validation logic #7

Closed fmontei closed 7 years ago

fmontei commented 7 years ago

This PR adds schemas for document pre-validation.

Validation is broken up into 2 stages: 1) Validate that each document contains the basic bulding blocks needed: "schema", "metadata" and "data" using a "base" schema. 2) Validate each specific document type (e.g. validation policy) using a more detailed schema.

Thus, a base schema was added for step 1) that validates that the basic properties are present and valid. In addition, more specific schemas were also added for step 2):

Unit tests were also added and updated to work with these above changes.

mark-burnett commented 7 years ago

@fmontei Do you want to merge this as a basis for future changes based on the slightly updated design?

fmontei commented 7 years ago

@mark-burnett I might abandon this and add this to another PR if needed.

fmontei commented 7 years ago

Moved to Gerrithub: https://review.gerrithub.io/#/c/373122/