Schema missing for `asset_formats` key in module settings.

Created on 9 August 2023, almost 2 years ago
Updated 11 September 2023, almost 2 years ago

Problem/Motivation

Config Inspector reports the following when analyzing `orange_dam.settings.yml`

 	Name 	Label 	Type 	Validatable 	Value 	Error 	Validation error
 	asset_formats.TRX 	Undefined 	undefined 	No 	 	missing schema 	
	asset_formats.TR1 	Undefined 	undefined 	No 	 	missing schema 	

Steps to reproduce

Enable config inspector module and check orange_dam.settings.yml.

Proposed resolution

Add the following to the schema file:

orange_dam.asset_format:
  type: string
  content_types:
    type: sequence
    label: 'Content Types'
    sequence:
      type: string
      label: 'Content Type'

(untested)

And rewrite the asset_formats key to:

    asset_formats:
      type: mapping
      label: 'Content Type <> Asset Format Mapping'
      mapping:
        label: 'Asset Format'
        type: string
        content_types:
          type: orange_dam.asset_format

Alternatively, an improvement could be to remove the `asset_formats` key all together and add it to the configuration of the content types, since that is actually what this config key is doing.

Remaining tasks

Decide whether to remove asset_formats and add it to content type config.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apotek

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

Comments & Activities

Production build 0.71.5 2024