herolib_python/_archive/openrpc/generator/mdbook/templates/methods.jinja
2025-08-05 15:15:36 +02:00

16 lines
393 B
Django/Jinja

## Methods
{% for method in methods %}
- {{ method['name'] }}: {{ method.get('description', '') }}
- Parameters:
{% for param in method.get('params', []) %}
{{ param['name'] }}: {{ get_pydantic_type(param['schema'])}}
{% endfor %}
- Return Type:
{{ get_return_type(method['result']) }}
- Example:
{{ method.get('examples', [{}])[0] }}
{% endfor %}