Fix invalid schema definition

Created on 15 March 2024, 9 months ago
Updated 2 April 2024, 9 months ago

Postponed on: https://www.drupal.org/project/micon/issues/3428592 🐛 Micon missing schema for its fields definitions Needs review

Problem/Motivation

When running the tests, they will fail with the message:

Schema errors for field.storage.paragraph.field_icon with the following errors: field.storage.paragraph.field_icon:settings.max_length missing schema, field.storage.paragraph.field_icon:settings.is_ascii missing schema, field.storage.paragraph.field_icon:settings.case_sensitive missing schema

Normally, creating field storage settings is quite easy, but I have no idea, how they should properly be formatted to be valid for paragraph fields and I can't seem to find a proper example, where this is already implemented.

I tried it with:

field.paragraph.storage_settings.field_icon:
  type: mapping
  label: 'Field Icon Storage Settings'
  mapping:
    max_length:
      type: integer
      label: 'Max length'
    is_ascii:
      type: boolean
      label: 'Is ASCII'
    case_sensitive:
      type: boolean
      label: 'Case sensitive'

But that doesn't seem to work. Same with writing "paragraph" after "storage_settings".

Steps to reproduce

Proposed resolution

Fix invalid schema definition

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024