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.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file mhhs_validate-0.0.2.tar.gz
.
File metadata
- Download URL: mhhs_validate-0.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa2c76894be4e17501850543d8e1ad39705b8ed6b3b3020fd5ceee19c3496d2c |
|
MD5 | bfc5dc0cdc75552a5f18e6e79a49274c |
|
BLAKE2b-256 | dcec5ac17a2c7df4e54b08a33189b48ec86de07da7a6ceeb81670552990ed22a |
File details
Details for the file mhhs_validate-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: mhhs_validate-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129f465ec97c257a6321797c3c25571cbbc649bfd3360bf59390cbf8d25ee6f0 |
|
MD5 | 48c7615b1d604308d96aea944d82243d |
|
BLAKE2b-256 | 920e54026e98b16ae0b2d5ae03d9435acb8ca615d565d84ddb5d25d95e1a4427 |