File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -53,19 +53,33 @@ component name="OpenAPIUtil" accessors="true" {
5353 * Create a new method representation
5454 */
5555 any function newMethod (){
56- var method = structNew ( " ordered" );
56+ var method = structNew ( " ordered" );
5757 var descMap = structNew ( " ordered" );
58+
5859 descMap .put ( " description" , " " );
60+
5961 // Other supported options are requestBody and tag will be added runtime
6062 var methodDefaults = [
61- {" summary" : " " },
62- {" description" : " " },
63- {" operationId" : " " },
64- {" parameters" : []},
63+ { " summary" : " " },
64+ { " tags" : [] },
65+ { " description" : " " },
66+ { " operationId" : " " },
67+ { " parameters" : [] },
68+ { " requestBody" : {
69+ " content" : {
70+
71+ }
72+ } },
6573 {
6674 " responses" : {
6775 " default" : descMap
6876 }
77+ },
78+ {
79+ " externalDocs" : {
80+ " description" : " " ,
81+ " url" : " "
82+ }
6983 }
7084 ];
7185
You can’t perform that action at this time.
0 commit comments