@buka/nestjs-kit 4.4.8 → 4.4.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.4.9](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.4.8...v4.4.9) (2026-07-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 修复collection生成的filter query的swagger错误 ([810c3ef](https://github.com/buka-ltd/npm.nestjs-kit/commit/810c3efef10204462be94b9075a07f9e8c983058))
9
+
3
10
  ## [4.4.8](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.4.7...v4.4.8) (2026-07-05)
4
11
 
5
12
 
package/dist/index.js CHANGED
@@ -1619,7 +1619,13 @@ function getObjectSchema(classRef) {
1619
1619
  if (isRelation) if (isCollection) {
1620
1620
  const sub = getObjectSchema(propertyMetadata.association.type());
1621
1621
  const operators = getCollectionOperators(classRef, propertyKey);
1622
- for (const operator of operators) properties[operator] = sub;
1622
+ const wrapper = {
1623
+ type: "object",
1624
+ properties: {},
1625
+ additionalProperties: false
1626
+ };
1627
+ for (const operator of operators) wrapper.properties[operator] = sub;
1628
+ properties[propertyKey] = wrapper;
1623
1629
  } else properties[propertyKey] = getObjectSchema(propertyMetadata.association.type());
1624
1630
  else {
1625
1631
  const propertySchema = {