@makehq/forman-schema 1.3.2 → 1.3.3
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 +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -180,6 +180,7 @@ function handleCollectionType(field, result, context) {
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
if (!subField.name) return;
|
|
183
|
+
if (result.properties && Object.hasOwn(result.properties, subField.name)) return;
|
|
183
184
|
if (subField.required) {
|
|
184
185
|
result.required.push(subField.name);
|
|
185
186
|
}
|
package/dist/index.js
CHANGED
|
@@ -151,6 +151,7 @@ function handleCollectionType(field, result, context) {
|
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
if (!subField.name) return;
|
|
154
|
+
if (result.properties && Object.hasOwn(result.properties, subField.name)) return;
|
|
154
155
|
if (subField.required) {
|
|
155
156
|
result.required.push(subField.name);
|
|
156
157
|
}
|