File tree Expand file tree Collapse file tree 1 file changed +16
-20
lines changed
Expand file tree Collapse file tree 1 file changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -17,30 +17,26 @@ component name="OpenAPIUtil" accessors="true" {
1717 * Generate a new template for the Open API spec
1818 */
1919 any function newTemplate (){
20- // We need to use Linked Hashmaps to maintain struct order for serialization and deserialization
20+ // We need to use Linked Hashmaps to maintain struct order for serialization and deserialization
2121 var template = structNew ( " ordered" );
22- var templateDefaults = [
23- {" openapi" : " 3.0.2" },
22+ var templateDefaults = [
23+ { " openapi" : " 3.0.2" },
2424 {
25- " info" : {
26- " version" : " " ,
27- " title" : " " ,
28- " description" : " " ,
29- " termsOfService" : " " ,
30- " contact " : structNew ( " ordered" ),
31- " license " : structNew ( " ordered" )
25+ " info" : {
26+ " version" : " " ,
27+ " title" : " " ,
28+ " description" : " " ,
29+ " termsOfService" : " " ,
30+ " license " : structNew ( " ordered" ),
31+ " contact " : structNew ( " ordered" )
3232 }
3333 },
34- {" servers" : []},
35- {" paths" : structNew ( " ordered" )},
36- {" security" : []},
37- {
38- " externalDocs" : {
39- " description" : " " ,
40- " url" : " "
41- }
42- }
43-
34+ { " servers" : [] },
35+ { " paths" : structNew ( " ordered" ) },
36+ { " components" : structNew ( " ordered" ) },
37+ { " security" : structNew ( " ordered" ) },
38+ { " tags" : [] },
39+ { " externalDocs" : {} }
4440 ];
4541
4642 for ( var templateDefault in templateDefaults ){
You can’t perform that action at this time.
0 commit comments