Fix config schema for formatters

Created on 19 June 2023, over 1 year ago
Updated 22 June 2024, 6 months 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.71.5 2024