Fix config schema for formatters

Created on 19 June 2023, about 1 year ago
Updated 22 June 2024, 7 days ago

Problem/Motivation

Fomatters have next config schema described:

field.formatter.settings.price_default:
  type: mapping
  label: 'Default price formatter settings'
  mapping:
    strip_trailing_zeroes:
      type: boolean
      label: 'Strip trailing zeroes after the decimal point'
    currency_display:
      type: string
      label: 'Currency display'

field.formatter.settings.price_calculated:
  type: mapping
  label: 'Calculated price formatter settings'
  mapping:
    strip_trailing_zeroes:
      type: boolean
      label: 'Strip trailing zeroes after the decimal point'
    currency_display:
      type: string
      label: 'Currency display'

While actual formatter names are price_price_default and price_modified_default.

This way it is failing validation with Config inspector β†’ .

Proposed resolution

Need to fix config schema with correct formatter names and also complete schema for price_modified_default as it is missing display_modifier option

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia sorlov

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

Comments & Activities

Production build 0.69.0 2024