OpenAPI spec insufficiently precise for `LayoutComponent`

Created on 5 February 2025, 2 months ago

Overview

The MR for πŸ“Œ Support server side massage and validation of component prop form values Active was forced to make changes to test fixtures that are a distraction there.

See https://git.drupalcode.org/project/experience_builder/-/merge_requests/5...

Proposed resolution

Tighten components.schemas.LayoutComponent.type to not just be:

        type:
          type: string

but:

        type:
          type: string
          # @todo Replace the hardcoded list of allowed component types (ComponentSource plugins) with `[a-z_]+` when contrib/custom component sources are supported.
          pattern: "^(sdc|js|block)+\\.[^:]+$"

User interface changes

None.

πŸ“Œ Task
Status

Active

Version

0.0

Component

Config management

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

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