Issue Bug Closed

#106623Site Settings definition works only with string, not int

Lina Wolf 04/26/25, 06:32 updated 08/08/25, 16:35

Description

The following definition does not work as expected:

  indexedsearch.defaultOptions.searchType:
    default: 1
    type: int
    enum:
      0: 'Distinct word'
      1: 'Part of word'
      2: 'First part of word'
      3: 'Last part of word'
      20: 'Sentence'
    category: indexedsearch.defaultOptions

Expected result:

clipboard-202504260833-gg9dc.png

However this one works:

  indexedsearch.defaultOptions.searchType:
    default: '1'
    type: string
    enum:
      '0': 'Distinct word'
      '1': 'Part of word'
      '2': 'First part of word'
      '3': 'Last part of word'
      '20': 'Sentence'
    category: indexedsearch.defaultOptions

Therefore if I want to define this option as enum I would lose the advantage of the site setting beeing typed.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.