Created
December 4, 2019 17:47
-
-
Save abhay-kumar/963344e33f0f56e4ce7d5be34d9b585b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if type.type == 'object' %} | |
### {{ type.displayName | d(type.name) }} | |
| Field | Type | Pattern | Required | | |
| ----- | ---- | ------- | -------- | | |
{%- for key, property in type.properties %} | |
| `{{ key }}` | {{ property.type }} | `{{ property.pattern | default(" ") }}` | {{ 'yes' if property.required else 'no' }} | {{ \n }} | |
{%- endfor %} | |
{% if type.examples %} | |
#### Examples | |
```json | |
{{ type.examples[0].structuredValue | dump(2) }} | |
``` | |
{% endif %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment