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

Comments

wim leers created an issue. See original summary.

wim leers’s picture

Project: Experience Builder » Drupal Canvas

Experience Builder has been renamed to Drupal Canvas in preparation for its beta release. You can now track issues on the new project page.