...
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 %}
 | 
			
		||||
@@ -0,0 +1,9 @@
 | 
			
		||||
# Classes
 | 
			
		||||
 | 
			
		||||
{% for class_name in sorted_classes %}
 | 
			
		||||
- {{ schema_dict[class_name]['title'] }}
 | 
			
		||||
{% for prop_name, prop in schema_dict[class_name]['properties'].items() %}
 | 
			
		||||
  - {{ prop_name }} ({{ get_pydantic_type(prop)}}): {{ prop['description'] }}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
 | 
			
		||||
{% endfor %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user