@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.js CHANGED
@@ -887,6 +887,13 @@ async function loadSchemas(directoryPath, options = {}) {
887
887
  }
888
888
  const target = schemas[targetName];
889
889
  if (!target) {
890
+ if (partial.name === targetName) {
891
+ schemas[partial.name] = {
892
+ ...partial,
893
+ kind: "object"
894
+ };
895
+ continue;
896
+ }
890
897
  console.warn(`Partial schema '${partial.name}' targets unknown schema '${targetName}', skipping`);
891
898
  continue;
892
899
  }