...
This commit is contained in:
16
_archive/openrpc/generator/mdbook/templates/methods.jinja
Normal file
16
_archive/openrpc/generator/mdbook/templates/methods.jinja
Normal file
@@ -0,0 +1,16 @@
|
||||
## 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 %}
|
Reference in New Issue
Block a user