Schema Validation errors: Incompatible types

Created on 2 July 2024, 6 months ago
Updated 21 July 2024, 5 months ago

Problem/Motivation

There are couple of schema definitions which contains incompatible types. For ex: Schema definitions should be an object while it contains an array. When running tests on Drupal Core 11, it throws an error and fails the tests. Ex errors:

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for imce.profile.admin with the following errors: imce.profile.admin:conf.usertab missing schema, imce.profile.admin:conf.extensions missing schema, imce.profile.admin:conf.maxsize missing schema, imce.profile.admin:conf.quota missing schema, imce.profile.admin:conf.maxwidth missing schema, imce.profile.admin:conf.maxheight missing schema, imce.profile.admin:conf.replace missing schema, imce.profile.admin:conf.thumbnail_style missing schema, imce.profile.admin:conf.thumbnail_grid_style missing schema, imce.profile.admin:conf.ignore_usage missing schema, imce.profile.admin:conf.url_alter missing schema, imce.profile.admin:conf.folders missing schema

We've to update the `imce.schema.yml` and fix the error because it expects an object, while we provided an array.

Before:

      sequence:
        - type: imce.profile_conf.[%key]

After:

      sequence:
        type: imce.profile_conf.[%key]
📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India chandu7929 Pune

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024