@extk/expressive 0.2.0 → 0.2.2
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -154,7 +154,7 @@ function param(inP, id, schema, required = true, description = "", name) {
|
|
|
154
154
|
return {
|
|
155
155
|
in: inP,
|
|
156
156
|
name: name ?? id,
|
|
157
|
-
|
|
157
|
+
description,
|
|
158
158
|
required,
|
|
159
159
|
schema
|
|
160
160
|
};
|
|
@@ -207,7 +207,9 @@ function buildExpressive(container, swaggerDoc) {
|
|
|
207
207
|
container.logger.info(message.trim());
|
|
208
208
|
} } }
|
|
209
209
|
));
|
|
210
|
-
app.use(configs.swagger.path, import_swagger_ui_express.default.serve, import_swagger_ui_express.default.setup(configs.swagger.doc
|
|
210
|
+
app.use(configs.swagger.path, import_swagger_ui_express.default.serve, import_swagger_ui_express.default.setup(configs.swagger.doc, {
|
|
211
|
+
customSiteTitle: configs.swagger.doc.info?.title
|
|
212
|
+
}));
|
|
211
213
|
return app;
|
|
212
214
|
},
|
|
213
215
|
expressiveRouter(configs) {
|
package/dist/index.mjs
CHANGED
|
@@ -89,7 +89,7 @@ function param(inP, id, schema, required = true, description = "", name) {
|
|
|
89
89
|
return {
|
|
90
90
|
in: inP,
|
|
91
91
|
name: name ?? id,
|
|
92
|
-
|
|
92
|
+
description,
|
|
93
93
|
required,
|
|
94
94
|
schema
|
|
95
95
|
};
|
|
@@ -142,7 +142,9 @@ function buildExpressive(container, swaggerDoc) {
|
|
|
142
142
|
container.logger.info(message.trim());
|
|
143
143
|
} } }
|
|
144
144
|
));
|
|
145
|
-
app.use(configs.swagger.path, swaggerUi.serve, swaggerUi.setup(configs.swagger.doc
|
|
145
|
+
app.use(configs.swagger.path, swaggerUi.serve, swaggerUi.setup(configs.swagger.doc, {
|
|
146
|
+
customSiteTitle: configs.swagger.doc.info?.title
|
|
147
|
+
}));
|
|
146
148
|
return app;
|
|
147
149
|
},
|
|
148
150
|
expressiveRouter(configs) {
|