Skip to content

Commit c45cc19

Browse files
authored
Add security definitions to default template
1 parent 31517cc commit c45cc19

File tree

1 file changed

+19
-18
lines changed
  • modules/swagger-sdk/models/OpenAPI

1 file changed

+19
-18
lines changed

modules/swagger-sdk/models/OpenAPI/Util.cfc

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ component name="OpenAPIUtil" accessors="true" {
1414
//We need to use Linked Hashmaps to maintain struct order for serialization and deserialization
1515
var template = createLinkedHashMap();
1616

17-
var templateDefaults = [
18-
{"swagger" : "2.0"},
19-
{
20-
"info" : {
21-
"version" : "",
22-
"title" : "",
23-
"description" : "",
24-
"termsOfService": "",
25-
"contact" : createLinkedHashMap(),
26-
"license" : createLinkedHashMap()
27-
}
28-
},
29-
{"host" : ""},
30-
{"basePath" : ""},
31-
{"schemes" : []},
32-
{"consumes" : ["application/json","multipart/form-data","application/x-www-form-urlencoded"]},
33-
{"produces" : ["application/json"]},
34-
{"paths" : createLinkedHashMap()}
17+
var templateDefaults = [
18+
{"swagger" : "2.0"},
19+
{
20+
"info" : {
21+
"version" : "",
22+
"title" : "",
23+
"description" : "",
24+
"termsOfService": "",
25+
"contact" : createLinkedHashMap(),
26+
"license" : createLinkedHashMap()
27+
}
28+
},
29+
{"host" : ""},
30+
{"basePath" : ""},
31+
{"schemes" : []},
32+
{"consumes" : ["application/json","multipart/form-data","application/x-www-form-urlencoded"]},
33+
{"produces" : ["application/json"]},
34+
{"paths" : createLinkedHashMap()},
35+
{"securityDefinitions": createLinkedHashMap()}
3536

3637
];
3738

0 commit comments

Comments
 (0)