defineComponentCatalog function from drupal-canvas package doesn't resolve schema references for props
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3576521. --> Reported by: [wotnak](https://www.drupal.org/user/3558113) Related to !662 >>> <h3 id="overview">Overview</h3> <p>The <code>defineComponentCatalog(metadata: ComponentMetadata[])</code> function added in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3573867" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3573867</a></span> to the drupal-canvas package doesn't resolve schema references in component props (eg. <code>$ref: json-schema-definitions://canvas.module/image</code>) which causes an error when trying to create a json-render component catalog with a component that uses schema references in its props definitions.</p> <p>The function is used to create a json-render component catalog that can be used to generate a prompt for ai agents for creating/modifying json-render specs from components available in the catalog that then can be rendered locally. It will be used to work with canvas pages in a local codebase.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Add support for resolving canvas schema references in props of components used to create a catalog.</p> <h3 id="ui-changes">User interface changes</h3> <p>None.</p> > Related issue: [Issue #3573867](https://www.drupal.org/node/3573867)
issue