schemars/docs/_includes/example.md
2019-12-26 21:34:08 +00:00

14 lines
301 B
Markdown

{% capture input %}examples/{{ include.name }}.rs{% endcapture %}
{% capture output %}examples/{{ include.name }}.schema.json{% endcapture %}
```rust
{% include {{ input }} %}
```
<details>
<summary>Click to see the output JSON schema...</summary>
```json
{% include {{ output }} %}
```
</details>