MHHS validator
Project description
mhhs-validate
Validate data against the MHHS specifications.
Installation
pip install mhhs-validate
Usage
MHHS_VALIDATE_VERSION=1.7.3 mhhs-validate example.json
Other environment variables and their defaults:
# The schemas get cached locally
MHHS_VALIDATE_CACHE_DIR=~/.mhhs-validate
# Names of the domains to fetch
MHHS_VALIDATE_DOMAINS=DataCatalogue,DataTypes,RealCommonBlocks,Interfaces-EventCodes,ECS-Reports,ECS-CommonBlocks
Example output
Failed validating 'enum' in
schema['properties']['CommonBlock']['properties']['M0']['properties']['GSPGroupID']:
{'$anchor': 'DI-037-GSP-Group-ID',
'description': 'Identifies the distinct grid supply point group '
'(physical region of the country) where the metering '
'point is located.',
'enum': ['_A',
'_B',
'_C',
'_D',
'_E',
'_F',
'_G',
'_H',
'_J',
'_K',
'_L',
'_M',
'_N',
'_P'],
'example': '_K',
'maxLength': 2,
'minLength': 2,
'type': 'string'}
On instance['CommonBlock']['M0']['GSPGroupID']:
'_X'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mhhs_validate-0.0.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for mhhs_validate-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf2c82a5a3ea2aa7112f0303b59c65eb079e15c9056cb5f88eb389aa35bd4bd |
|
MD5 | f1bbeb602e39d502e9cb3a1a8f8c508b |
|
BLAKE2b-256 | ec35ff4d2fefa6ee30239137327a54eb727b98facb5a90f28eb2bd88a9948585 |