@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 +7 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1591,7 +1591,13 @@ function getObjectSchema(classRef) {
|
|
|
1591
1591
|
if (isRelation) if (isCollection) {
|
|
1592
1592
|
const sub = getObjectSchema(propertyMetadata.association.type());
|
|
1593
1593
|
const operators = getCollectionOperators(classRef, propertyKey);
|
|
1594
|
-
|
|
1594
|
+
const wrapper = {
|
|
1595
|
+
type: "object",
|
|
1596
|
+
properties: {},
|
|
1597
|
+
additionalProperties: false
|
|
1598
|
+
};
|
|
1599
|
+
for (const operator of operators) wrapper.properties[operator] = sub;
|
|
1600
|
+
properties[propertyKey] = wrapper;
|
|
1595
1601
|
} else properties[propertyKey] = getObjectSchema(propertyMetadata.association.type());
|
|
1596
1602
|
else {
|
|
1597
1603
|
const propertySchema = {
|