Schema correction

Created on 3 October 2016, about 8 years ago
Updated 8 September 2023, about 1 year ago

Tests were failing for me with the dev/tutorial version. It appeared to be tied to the schema file. After some playing around I landed here:

/config/schema/loremipsum.schema.yml

loremipsum.settings:
  type: config_object
  label: 'Lorem Ipsum settings'
  mapping:
    loremipsum:
      type: mapping
      mapping:
        page_title:
          type: text
          label: 'Lorem ipsum generator page title:'
        source_text:
          type: text
          label: 'Source text for lorem ipsum generation:'

block.settings.loremipsum_block:
  type: block_settings
  label: 'Lorem ipsum block'
  mapping:
    loremipsum_block_settings:
      type: text
      label: 'Lorem ipsum block settings'

I changed the type at the top level from "mapping" to "config_object". Under the block settings I added a type and label. After doing this the module appears to be functioning correctly and all tests are passing. I can't say I understand these config files enough to know if my changes have any other impact on the module. Hope it helps.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mitchellshelton

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024