Skip to content

Commit 577c2a4

Browse files
committed
more path updates
1 parent 15071ca commit 577c2a4

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

models/OpenAPI/Util.cfc

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)