Schema validation for webform.webform.* config

Created on 13 November 2024, 8 days ago

Problem/Motivation

The webform_analysis module currently stores third-party settings in webform configurations without providing a corresponding schema definition. This causes schema validation errors when strict config schema checking is enabled.

Steps to reproduce

Install webform_analysis module
Create a webform with webform_analysis settings
Observe schema validation errors for third_party_settings.webform_analysis (/admin/reports/status)

Proposed resolution

Add a schema definition file for webform_analysis third-party settings that properly defines the expected configuration structure:

webform.settings.third_party.webform_analysis:
  type: mapping
  label: 'Webform Analysis Settings'
  mapping:
    chart_type:
      type: string
      label: 'Chart Type'
      nullable: true
    components:
      type: sequence
      label: 'Components'
      sequence:
        type: string
        label: 'Component'
🐛 Bug report
Status

Active

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024