- Name
- {{ contract.name }}
{% if contract.description and contract.description.usage %}
- Description
- {{ contract.description.usage }}
{% endif %}
{% if contract.servers %}
- Servers
-
{% for s in contract.servers %}
-
{{ s.server }}{% if s.type %} ({{ s.type }}){% endif %}:
{% if s.path %}{{ s.path }}{% elif s.dataset %}{{ s.dataset }}{% endif %}
{% endfor %}
{% endif %}
{% if datasets %}
Datasets
{% endif %}
{% for s in contract.schema %}
{{ s.name }}
| Name | Type | Required |
{% for p in s.properties %}
| {{ p.name }} | {{ p.physicalType }} | {{ 'yes' if p.required else 'no' }} |
{% endfor %}
{% endfor %}
{% if expectations %}
| Name | Predicate |
{% for name, expr in expectations.items() %}
| {{ name }} | {{ expr }} |
{% endfor %}
{% else %}
No quality rules defined.
{% endif %}
{{ contract | tojson(indent=2) }}
{% endblock %}