This commit is contained in:
26
app/localapi-docs/src/templates/json_template.json
Normal file
26
app/localapi-docs/src/templates/json_template.json
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"openapi": "{{ spec.openapi }}",
|
||||||
|
"info": {
|
||||||
|
"title": "{{ info.title }}",
|
||||||
|
"version": "{{ info.version }}",
|
||||||
|
"description": {{ info.description | tojson if info.description else 'null' }},
|
||||||
|
"termsOfService": {{ info.terms_of_service | tojson if info.terms_of_service else 'null' }},
|
||||||
|
"contact": {{ info.contact | tojson if info.contact else 'null' }},
|
||||||
|
"license": {{ info.license | tojson if info.license else 'null' }}
|
||||||
|
},
|
||||||
|
"servers": {{ servers | tojson if servers else 'null' }},
|
||||||
|
"paths": {{ paths | tojson }},
|
||||||
|
"components": {
|
||||||
|
"schemas": {{ components.schemas | tojson if components.schemas else 'null' }},
|
||||||
|
"responses": {{ components.responses | tojson if components.responses else 'null' }},
|
||||||
|
"parameters": {{ components.parameters | tojson if components.parameters else 'null' }},
|
||||||
|
"requestBodies": {{ components.request_bodies | tojson if components.request_bodies else 'null' }},
|
||||||
|
"headers": {{ components.headers | tojson if components.headers else 'null' }},
|
||||||
|
"securitySchemes": {{ components.security_schemes | tojson if components.security_schemes else 'null' }},
|
||||||
|
"links": {{ components.links | tojson if components.links else 'null' }},
|
||||||
|
"callbacks": {{ components.callbacks | tojson if components.callbacks else 'null' }}
|
||||||
|
},
|
||||||
|
"security": {{ security | tojson if security else '[]' }},
|
||||||
|
"tags": {{ tags | tojson if tags else '[]' }},
|
||||||
|
"externalDocs": {{ external_docs | tojson if external_docs else 'null' }}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user