Config schema is wrong

Created on 30 May 2024, 29 days ago
Updated 17 June 2024, 11 days ago

Problem/Motivation

Our same_page_preview.schema.yml file is

# Schema for the configuration files of the Same Page Preview module.
same_page_preview.settings:
  type: config_object
  label: 'Same Page Preview settings'
  mapping:
    example:
      type: string
      label: 'Example'

Clearly just dummy config. Our settings form largely uses a browser's localStorage to persist settings. That's no reason not to fix our actual config.

This hasn't been a problem until now. In D11 we'll be asked to validate our config and in order to pass phpstan on future releases we'll have to. Should be easy to do. We just need to ensure the proper values with the proper types are listed in this schema.yml file.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cosmicdreams Minneapolis/St. Paul

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024