roas-codegen 0.2.0

Generate Rust and Go types from OpenAPI 2.0 / 3.0 / 3.1 / 3.2 descriptions
Documentation
1
2
3
4
5
6
{% block doc %}{% for line in t.doc %}/// {{ line }}
{% endfor %}{% endblock %}{% if t.kind == "alias" %}pub type {{ t.name }} = {{ t.inner }};
{% else %}{% block derives %}#[derive({{ t.derives | join(", ") }})]
{% endblock %}{% block attrs %}{% for a in t.attrs %}{{ a }}
{% endfor %}{% endblock %}pub struct {{ t.name }}(pub {{ t.inner }});
{% endif %}{% block trailing %}{% endblock %}