Overview
Surfaced at #3540470-21: Require 6.x version of `justinrainbow/json-schema` package to get correct JSON Schema validation.
Follow-up for #3509606: Allow adding "URL" (`type: string, format: uri`) props in the code component editor.
#3509606: Allow adding "URL" (`type: string, format: uri`) props in the code component editor introduced this UI:

The first results in type: string, format: uri, the second in type: string, format: uri-reference. Great!
However, "relative path" is slightly misleading: whenever relative URIs are allowed, absolute URIs are allowed too — that' show JSON Schema has defined format: uri-reference: https://opis.io/json-schema/2.x/formats.html#uri-reference
Proposed resolution
Clarify this:
- Relative path → Internal links (relative and absolute URLs)
- Full URL → External and internal links (absolute URLs)
Which is also what the Drupal "link" field type does:

User interface changes
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2025-08-25 at 11.41.17 AM.png | 30.34 KB | wim leers |
Comments
Comment #2
wim leersPaved the path in that MR by providing explicit test coverage for what XB has allowed ever since #3509606: Allow adding "URL" (`type: string, format: uri`) props in the code component editor landed: https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...