@kaito-http/core 4.0.0-beta.26 → 4.0.0-beta.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/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1308,11 +1308,12 @@ var Router = class _Router {
|
|
|
1308
1308
|
const addSchemaForRef = (ref) => {
|
|
1309
1309
|
const name = ref.name;
|
|
1310
1310
|
const properties = Object.fromEntries(Object.entries(ref.shape).map(([key, value]) => [key, value.toOpenAPI()]));
|
|
1311
|
+
const desc = ref.description();
|
|
1311
1312
|
const schemaObject = {
|
|
1312
1313
|
type: "object",
|
|
1313
1314
|
properties,
|
|
1314
1315
|
required: Object.keys(ref.shape),
|
|
1315
|
-
...
|
|
1316
|
+
...desc ? { description: desc } : {}
|
|
1316
1317
|
};
|
|
1317
1318
|
const existing = componentsSchemas[name];
|
|
1318
1319
|
if (existing) {
|
package/dist/index.js
CHANGED
|
@@ -336,11 +336,12 @@ var Router = class _Router {
|
|
|
336
336
|
const addSchemaForRef = (ref) => {
|
|
337
337
|
const name = ref.name;
|
|
338
338
|
const properties = Object.fromEntries(Object.entries(ref.shape).map(([key, value]) => [key, value.toOpenAPI()]));
|
|
339
|
+
const desc = ref.description();
|
|
339
340
|
const schemaObject = {
|
|
340
341
|
type: "object",
|
|
341
342
|
properties,
|
|
342
343
|
required: Object.keys(ref.shape),
|
|
343
|
-
...
|
|
344
|
+
...desc ? { description: desc } : {}
|
|
344
345
|
};
|
|
345
346
|
const existing = componentsSchemas[name];
|
|
346
347
|
if (existing) {
|