Class PreferenceValidationService
Properties
Protected
Readonly
languageOverrideService
Protected
Readonly
schemaProvider
Methods
Protected
doValidateByName
- doValidateByName(preferenceName, value): JSONValue
Parameters
- preferenceName: string
- value: JSONValue
Returns JSONValue
Protected
getDefaultFromSchema
- getDefaultFromSchema(schema): JSONValue
Returns JSONValue
Protected
mapValidators
- mapValidators(key, value, validators): JSONValue
Parameters
- key: string
- value: JSONValue
- validators: Iterable<((value) => JSONValue)>
Returns JSONValue
Protected
objectMatchesSchema
- objectMatchesSchema(key, value, schema): value is JSONObject
Returns value is JSONObject
Protected
validateAnyOf
- validateAnyOf(key, value, schema): JSONValue
Returns JSONValue
Protected
validateArray
- validateArray(key, value, schema): JSONValue[]
Returns JSONValue[]
Protected
validateBoolean
- validateBoolean(key, value, schema): boolean
Returns boolean
validateByName
- validateByName(preferenceName, value): JSONValue
Parameters
- preferenceName: string
- value: JSONValue
Returns JSONValue
validateBySchema
- validateBySchema(key, value, schema): JSONValue
Returns JSONValue
Protected
validateConst
- validateConst(key, value, schema): JSONValue
Returns JSONValue
Protected
validateEnum
- validateEnum(key, value, schema): JSONValue
Returns JSONValue
Protected
validateInteger
- validateInteger(key, value, schema): number
Returns number
Protected
validateMultiple
- validateMultiple(key, value, schema): JSONValue
Returns JSONValue
Protected
validateNumber
- validateNumber(key, value, schema): number
Returns number
Protected
validateObject
- validateObject(key, value, schema): JSONObject
Returns JSONObject
Protected
validateOneOf
- validateOneOf(key, value, schema): JSONValue
Returns JSONValue
validateOptions
- validateOptions(options): Record<string, JSONValue>
Parameters
- options: Record<string, JSONValue>
Returns Record<string, JSONValue>
Protected
validateString
- validateString(key, value, schema): string
Returns string
Protected
validateTuple
- validateTuple(key, value, schema): JSONValue[]
Parameters
- key: string
- value: JSONValue
- schema: ValidatablePreferenceTuple
Returns JSONValue[]