@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 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
- ...ref.description() ? { description: ref.description() } : {}
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
- ...ref.description() ? { description: ref.description() } : {}
344
+ ...desc ? { description: desc } : {}
344
345
  };
345
346
  const existing = componentsSchemas[name];
346
347
  if (existing) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaito-http/core",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.26",
4
+ "version": "4.0.0-beta.27",
5
5
  "author": "Alistair Smith <hi@alistair.sh>",
6
6
  "repository": "https://github.com/kaito-http/kaito",
7
7
  "dependencies": {