Skip to content

Instantly share code, notes, and snippets.

@abhay-kumar
Created December 4, 2019 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhay-kumar/963344e33f0f56e4ce7d5be34d9b585b to your computer and use it in GitHub Desktop.
Save abhay-kumar/963344e33f0f56e4ce7d5be34d9b585b to your computer and use it in GitHub Desktop.
{% 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