@famgia/omnify-core 0.0.117 → 0.0.122
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 +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -998,6 +998,13 @@ async function loadSchemas(directoryPath, options = {}) {
|
|
|
998
998
|
}
|
|
999
999
|
const target = schemas[targetName];
|
|
1000
1000
|
if (!target) {
|
|
1001
|
+
if (partial.name === targetName) {
|
|
1002
|
+
schemas[partial.name] = {
|
|
1003
|
+
...partial,
|
|
1004
|
+
kind: "object"
|
|
1005
|
+
};
|
|
1006
|
+
continue;
|
|
1007
|
+
}
|
|
1001
1008
|
console.warn(`Partial schema '${partial.name}' targets unknown schema '${targetName}', skipping`);
|
|
1002
1009
|
continue;
|
|
1003
1010
|
}
|