Canvas AI: Update the image's src prop to use latest schema.
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3555154. -->
Reported by: [utkarsh_33](https://www.drupal.org/user/3727088)
Related to !275
>>>
<h3 id="overview">Overview</h3>
<p> The src property for image doesn't accept uri-reference (like public://, private:// etc.) The src property for image is mapped with src_with_alternate_widths prop. See here:<br>
<a href="https://git.drupalcode.org/project/canvas/-/blob/1.x/src/Hook/ShapeMatchingHooks.php?ref_type=heads#L374-378">https://git.drupalcode.org/project/canvas/-/blob/1.x/src/Hook/ShapeMatchingHooks.php?ref_type=heads#L374-378</a><br>
And the prop src_with_alternate_widths has a constraint validation that uri scheme must be http or https. See here: <a href="https://git.drupalcode.org/project/canvas/-/blob/1.x/src/Plugin/Field/FieldTypeOverride/ImageItemOverride.php#L96">https://git.drupalcode.org/project/canvas/-/blob/1.x/src/Plugin/Field/FieldTypeOverride/ImageItemOverride.php#L96</a></p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<h3 id="ui-changes">User interface changes</h3>
> Related issue: [Issue #3562095](https://www.drupal.org/node/3562095)
issue