@ai-matrx/content-ir 0.8.0 → 0.9.0

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
@@ -3687,6 +3687,14 @@ function convertPropertyCore(fieldName, node, required, path, ctx) {
3687
3687
  }
3688
3688
  const referencedKind = readBlockKindFromProperties(node.properties);
3689
3689
  if (referencedKind) {
3690
+ if (!ctx.refsInProgress.has(referencedKind)) {
3691
+ ctx.refsInProgress.add(referencedKind);
3692
+ try {
3693
+ registerDeclaredKindDraft(referencedKind, node, path, ctx);
3694
+ } finally {
3695
+ ctx.refsInProgress.delete(referencedKind);
3696
+ }
3697
+ }
3690
3698
  return {
3691
3699
  ...requiredNullableFlags(required, nullable),
3692
3700
  type: "object",