Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PreferenceValidationService

Hierarchy

  • PreferenceValidationService

Index

Constructors

Properties

languageOverrideService: PreferenceLanguageOverrideService
schemaProvider: PreferenceSchemaProvider

Methods

  • doValidateByName(preferenceName: string, value: JSONValue): JSONValue
  • mapValidators(key: string, value: JSONValue, validators: Iterable<((value: JSONValue) => JSONValue)>): JSONValue
  • validateByName(preferenceName: string, value: JSONValue): JSONValue
  • validateConst(key: string, value: JSONValue, schema: ValidatablePreference & { const: JSONValue }): JSONValue
  • validateEnum(key: string, value: JSONValue, schema: ValidatablePreference & { enum: JSONValue[] }): JSONValue
  • validateOptions(options: Record<string, JSONValue>): Record<string, JSONValue>
  • validateTuple(key: string, value: JSONValue, schema: ValidatablePreferenceTuple): JSONValue[]