Get schema coverage report
get_corpus_coverageCheck that an edition's coverage files reach every element path and choice branch of its XSD before trusting them to smoke a parser or mapping.
Instructions
Return the schema coverage verdict of one message type's coverage set.
Use this to check that the shipped coverage files reach every element
path and choice branch of an edition's XSD before relying on them to
smoke a parser or a mapping.
Delegates to :func:`pain001.corpus.coverage_report`.
Args:
version: The message type.
Returns:
The ``coverage.json`` content (path and branch counts and
percentages, completeness, missing and exempt lists), or
``{"error": ...}`` when the edition has no set or there is no
corpus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | The message type, e.g. 'pain.001.001.13'. |