# Sample Validator

This tool validates first N rows of a file against the json schema.

Schemas could be located on S3 or somewhere in a local storage.

## Usage

    Sample-validator
    usage: sample-validator [-h] --path-to-schema PATH_TO_SCHEMA --file FILE
                            [--rows ROWS] [--rate RATE] [--debug] [--json]
    sample-validator: the following arguments are required: --path-to-schema/-s, --file/-f


## Testing

In order to run tests you should install test dependencies to your `venv` from `requirements/test.pip`
After that you can just type.

    make run

These tests can be treated as `integration` tests because they uses schemas located in S3 bucket
`s3://dev-delphi-configs/schemas/`.

Whenever you decided to update schemas you should pull `date dictionary` repository and then upload schemas with the command

    aws s3 sync ./schemas s3://dev-delphi-configs/schemas
