@innet/server 2.0.0-alpha.26 → 2.0.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -106,7 +106,7 @@ function generateTypes(docs, namespace = 'Api') {
|
|
|
106
106
|
query: '',
|
|
107
107
|
};
|
|
108
108
|
for (const param of parameters) {
|
|
109
|
-
const splitter = param.in === 'path' || hasDefault(param.schema) ? ':' : '?:';
|
|
109
|
+
const splitter = param.in === 'path' || hasDefault(param.schema) || param.required ? ':' : '?:';
|
|
110
110
|
params[param.in] += ` ${param.name}${splitter} ${generateSchemaTypes(param.schema)}`;
|
|
111
111
|
}
|
|
112
112
|
if (params.path) {
|
|
@@ -110,7 +110,7 @@ function generateTypes(docs, namespace = 'Api') {
|
|
|
110
110
|
query: '',
|
|
111
111
|
};
|
|
112
112
|
for (const param of parameters) {
|
|
113
|
-
const splitter = param.in === 'path' || hasDefault(param.schema) ? ':' : '?:';
|
|
113
|
+
const splitter = param.in === 'path' || hasDefault(param.schema) || param.required ? ':' : '?:';
|
|
114
114
|
params[param.in] += ` ${param.name}${splitter} ${generateSchemaTypes(param.schema)}`;
|
|
115
115
|
}
|
|
116
116
|
if (params.path) {
|