@yamato-daiwa/es-extensions 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Distributable/cjs/RandomValuesGenerators/getRandomString/getRandomString.js +1 -1
- package/Distributable/cjs/RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english.js +10 -10
- package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessor.js +9 -9
- package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js +52 -54
- package/Distributable/cjs/TypeGuards/Numbers/isIntegerOfAnySign.js +6 -0
- package/Distributable/cjs/index.js +38 -34
- package/Distributable/esm/RandomValuesGenerators/getRandomString/getRandomString.d.ts +2 -2
- package/Distributable/esm/RandomValuesGenerators/getRandomString/getRandomString.js +1 -1
- package/Distributable/esm/RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english.js +10 -10
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessor.d.ts +1 -1
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessor.js +9 -9
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js +52 -54
- package/Distributable/esm/TypeGuards/Numbers/isIntegerOfAnySign.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isIntegerOfAnySign.js +3 -0
- package/Distributable/esm/index.d.ts +16 -14
- package/Distributable/esm/index.js +16 -14
- package/README.md +13 -14
- package/package.json +1 -2
|
@@ -170,7 +170,7 @@ class RandomStringsGenerator {
|
|
|
170
170
|
}
|
|
171
171
|
const otherCharacters = [];
|
|
172
172
|
if (Array.isArray(allowedCharacters.other)) {
|
|
173
|
-
for (const arrayElement__possiblyHasMoreThanOneCharacter of
|
|
173
|
+
for (const arrayElement__possiblyHasMoreThanOneCharacter of allowedCharacters.other) {
|
|
174
174
|
otherCharacters.push(...arrayElement__possiblyHasMoreThanOneCharacter.split(""));
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const gettingOfRandomStringLocalization__english = {
|
|
4
4
|
errors: {
|
|
5
5
|
minimalCharactersCountMustBeGreaterThan0: (actualValue) => `The 'minimalCharactersCount' property must be greater than 0 while really it's ${actualValue}`,
|
|
6
|
-
sumOfCharactersCountOfAffixesAndMinimalRandomlyGeneratedCharactersCountIsExceedsMaximalCharactersCount: (
|
|
6
|
+
sumOfCharactersCountOfAffixesAndMinimalRandomlyGeneratedCharactersCountIsExceedsMaximalCharactersCount: (templateVariables) => "The sum of characters count of 'prefix', 'infix' and 'postfix' and also 'minimalRandomlyGeneratedCharactersCount' are " +
|
|
7
7
|
"exceeds the 'maximalCharactersCount':\n" +
|
|
8
|
-
` prefix.length: ${
|
|
9
|
-
` infix.length: ${
|
|
10
|
-
` postfix.length: ${
|
|
11
|
-
`minimalRandomlyGeneratedCharactersCount: ${
|
|
12
|
-
` SUBTOTAL: ${
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
` maximalCharactersCount: ${
|
|
8
|
+
` prefix.length: ${templateVariables.prefix.length}\n` +
|
|
9
|
+
` infix.length: ${templateVariables.infix.length}\n` +
|
|
10
|
+
` postfix.length: ${templateVariables.postfix.length}\n` +
|
|
11
|
+
`minimalRandomlyGeneratedCharactersCount: ${templateVariables.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
12
|
+
` SUBTOTAL: ${templateVariables.prefix.length +
|
|
13
|
+
templateVariables.infix.length +
|
|
14
|
+
templateVariables.postfix.length +
|
|
15
|
+
templateVariables.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
16
|
+
` maximalCharactersCount: ${templateVariables.maximalCharactersCount}`,
|
|
17
17
|
explicitlySpecifiedMinimalCharactersCountExceedsMaximalCharactersCount: ({ minimalCharactersCount, maximalCharactersCount }) => `The explicitly specified minimal characters count (${minimalCharactersCount}) exceeds the maximal characters ` +
|
|
18
18
|
`count ${maximalCharactersCount}`,
|
|
19
19
|
noAllowedCharactersForRandomGeneration: "No characters for the random string generation has been allowed allowed." +
|
|
@@ -2243,19 +2243,19 @@ class RawObjectDataProcessor {
|
|
|
2243
2243
|
break;
|
|
2244
2244
|
}
|
|
2245
2245
|
case "object": {
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2246
|
+
const isIndexedArrayLikeType = Array.isArray(targetValue);
|
|
2247
|
+
const possibleSpecificationsForObjectValueTypes = targetValueSpecification.alternatives.filter((alternativeSpecification) => (isIndexedArrayLikeType ?
|
|
2248
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.indexedArray ||
|
|
2249
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.tuple ||
|
|
2250
|
+
alternativeSpecification.type === Array :
|
|
2251
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.fixedSchemaObject ||
|
|
2252
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.associativeArray ||
|
|
2253
|
+
alternativeSpecification.type === Object));
|
|
2254
2254
|
if (possibleSpecificationsForObjectValueTypes.length > 1) {
|
|
2255
2255
|
Logger_1.default.throwErrorWithFormattedMessage({
|
|
2256
2256
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
2257
2257
|
customMessage: this.localization.throwableErrors.incompatibleValuesTypesAlternatives.generateDescription({
|
|
2258
|
-
|
|
2258
|
+
isIndexedArrayLikeType,
|
|
2259
2259
|
documentationPageAnchor: "THROWABLE_ERRORS-INCOMPATIBLE_VALUES_TYPES_ALTERNATIVES"
|
|
2260
2260
|
})
|
|
2261
2261
|
}),
|
package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js
CHANGED
|
@@ -55,15 +55,14 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
55
55
|
generateDescription: ({ stringifiedCaughtError }) => "The following error has occurred during the pre-validation modification of this property/element. \n" +
|
|
56
56
|
`${stringifiedCaughtError}\n` +
|
|
57
57
|
"The data has been marked as invalid because the error handling strategy \"onPreValidationModificationFailed\" " +
|
|
58
|
-
"is \"ErrorHandlingStrategies.markingOfDataAsInvalid\" what is not recommended
|
|
59
|
-
"be in pre-validation modification function, not always in the data. "
|
|
58
|
+
"is \"ErrorHandlingStrategies.markingOfDataAsInvalid\" what is not recommended. "
|
|
60
59
|
},
|
|
61
60
|
forbiddenUndefinedValue: {
|
|
62
61
|
title: "Forbidden Undefined Value",
|
|
63
62
|
description: "This property/element is not defined or have explicit `undefined` value what has been explicitly forbidden."
|
|
64
63
|
},
|
|
65
64
|
conditionallyForbiddenUndefinedValue: {
|
|
66
|
-
title: "Conditionally Forbidden Undefined Value
|
|
65
|
+
title: "Conditionally Forbidden Undefined Value",
|
|
67
66
|
generateDescription: ({ verbalConditionWhenUndefinedIsForbiddenWithoutEndOfSentenceMark }) => "This property/element is not defined or has explicit `undefined` value what has been forbidden when " +
|
|
68
67
|
`${verbalConditionWhenUndefinedIsForbiddenWithoutEndOfSentenceMark}, and this condition has been satisfied.`
|
|
69
68
|
},
|
|
@@ -73,7 +72,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
73
72
|
`${verbalConditionWhenMustBeUndefinedWithoutEndOfSentenceMark}, and this condition has been satisfied.`
|
|
74
73
|
},
|
|
75
74
|
forbiddenNullValue: {
|
|
76
|
-
title: "Forbidden Null Value
|
|
75
|
+
title: "Forbidden Null Value",
|
|
77
76
|
description: "This property/element has `null` value what has been explicitly forbidden."
|
|
78
77
|
},
|
|
79
78
|
conditionallyForbiddenNullValue: {
|
|
@@ -88,22 +87,19 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
88
87
|
},
|
|
89
88
|
unableToDeletePropertyWithOutdatedKey: {
|
|
90
89
|
title: "Unable to Delete Property With Outdated Key",
|
|
91
|
-
generateDescription: ({ propertyNewKey }) => `Unable to delete this property after
|
|
92
|
-
"while the processing approach is the manipulations with source object and
|
|
93
|
-
"has not been set to true."
|
|
90
|
+
generateDescription: ({ propertyNewKey }) => `Unable to delete this property after creating of its copy with name "${propertyNewKey}", because it ` +
|
|
91
|
+
"is not configurable while the processing approach is the manipulations with source object and " +
|
|
92
|
+
"`mustLeaveEvenRenamed` option has not been set to true."
|
|
94
93
|
},
|
|
95
94
|
unableToChangePropertyDescriptors: {
|
|
96
95
|
title: "Usable to Change Property Descriptors",
|
|
97
96
|
description: "Unable to change the descriptions of this property because it is not configurable while the processing " +
|
|
98
|
-
"approach is the manipulations with source object
|
|
97
|
+
"approach is the manipulations with source object."
|
|
99
98
|
},
|
|
100
99
|
unableToUpdatePropertyValue: {
|
|
101
100
|
title: "Unable to Update Property Value",
|
|
102
101
|
description: "The updating of this property has been requested via default value substitution or pre-validation " +
|
|
103
|
-
"modification while this property is read-only. "
|
|
104
|
-
"The data has been marked as invalid because the error handling strategy " +
|
|
105
|
-
"\"onUnableToUnableToUpdatePropertyValue\" is \"ErrorHandlingStrategies.markingOfDataAsInvalid\" what " +
|
|
106
|
-
"is recommended only if this property on source data actually expected to be writable. "
|
|
102
|
+
"modification while this property is read-only. "
|
|
107
103
|
},
|
|
108
104
|
unexpectedProperties: {
|
|
109
105
|
title: "Unexpected Properties",
|
|
@@ -115,17 +111,17 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
115
111
|
generateDescription: ({ customValidationDescription }) => `This value has not passed the custom validation "${customValidationDescription}".`
|
|
116
112
|
},
|
|
117
113
|
associativeArrayEntriesCountIsLessThanRequiredMinimum: {
|
|
118
|
-
title: "
|
|
114
|
+
title: "Too Few Entries in Associative Array",
|
|
119
115
|
generateDescription: ({ actualEntriesCount, minimalEntriesCount }) => `This value of associative array has ${actualEntriesCount} entries while at least ` +
|
|
120
116
|
`${minimalEntriesCount} expected.`
|
|
121
117
|
},
|
|
122
118
|
associativeArrayPairsCountIsMoreThanAllowedMaximum: {
|
|
123
|
-
title: "
|
|
119
|
+
title: "Too Many Entries in Associative Array",
|
|
124
120
|
generateDescription: ({ maximalEntriesCount, actualEntriesCount }) => `This value of associative array has ${actualEntriesCount} entries while maximally ` +
|
|
125
121
|
`${maximalEntriesCount} expected.`
|
|
126
122
|
},
|
|
127
123
|
associativeArrayPairsCountDoesNotMatchWithSpecifiedExactNumber: {
|
|
128
|
-
title: "
|
|
124
|
+
title: "Wrong Exact Number of Entries in Associative Array",
|
|
129
125
|
generateDescription: ({ exactEntriesCount, actualEntriesCount }) => `This value of associative array has ${exactEntriesCount} entries while exactly ${actualEntriesCount} expected.`
|
|
130
126
|
},
|
|
131
127
|
forbiddenForSpecificKeysUndefinedOrNullValuesFoundInAssociativeArrayTypeObject: {
|
|
@@ -137,30 +133,30 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
137
133
|
join("\n")
|
|
138
134
|
},
|
|
139
135
|
disallowedKeysFoundInAssociativeArray: {
|
|
140
|
-
title: "Disallowed
|
|
141
|
-
generateDescription: ({ foundDisallowedKeys }) => "
|
|
136
|
+
title: "Disallowed Keys of Associative Array",
|
|
137
|
+
generateDescription: ({ foundDisallowedKeys }) => "The following keys presents in this associative array while these keys are disallowed.\n" +
|
|
142
138
|
foundDisallowedKeys.
|
|
143
139
|
map((foundDisallowedKey) => ` ● ${foundDisallowedKey}`).
|
|
144
140
|
join("\n")
|
|
145
141
|
},
|
|
146
142
|
indexedArrayElementsCountIsLessThanRequiredMinimum: {
|
|
147
|
-
title: "
|
|
148
|
-
generateDescription: ({ minimalElementsCount, actualElementsCount }) => `This value of indexed array
|
|
143
|
+
title: "Too Few Elements in Indexed Array",
|
|
144
|
+
generateDescription: ({ minimalElementsCount, actualElementsCount }) => `This value of indexed array has ${actualElementsCount} elements while at least ` +
|
|
149
145
|
`${minimalElementsCount} expected.`
|
|
150
146
|
},
|
|
151
147
|
indexedArrayElementsCountIsMoreThanAllowedMaximum: {
|
|
152
148
|
title: "Indexed Array has More Elements than Expected Maximum",
|
|
153
|
-
generateDescription: ({ maximalElementsCount, actualElementsCount }) => `This value of indexed array
|
|
149
|
+
generateDescription: ({ maximalElementsCount, actualElementsCount }) => `This value of indexed array has ${actualElementsCount} elements while maximally ` +
|
|
154
150
|
`${maximalElementsCount} expected.`
|
|
155
151
|
},
|
|
156
152
|
indexedArrayOrTupleElementsCountDoesNotMatchWithSpecifiedExactNumber: {
|
|
157
|
-
title: "
|
|
153
|
+
title: "Wrong Exact Number of Element in Indexed Array or Tuple",
|
|
158
154
|
generateDescription: ({ exactElementsCount, actualElementsCount }) => `This value of indexed array or tuple type has ${actualElementsCount} elements while exactly ` +
|
|
159
155
|
`${exactElementsCount} expected.`
|
|
160
156
|
},
|
|
161
157
|
forbiddenNaN_Value: {
|
|
162
158
|
title: "Forbidden NaN Value Of Numeric Property/Element",
|
|
163
|
-
description: "The value of this numeric property
|
|
159
|
+
description: "The value of this numeric property or element is NaN while it has been explicitly forbidden. "
|
|
164
160
|
},
|
|
165
161
|
numericValueIsNotBelongToExpectedNumbersSet: {
|
|
166
162
|
title: "Expected and Actual Numbers Set Mismatch",
|
|
@@ -169,7 +165,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
169
165
|
},
|
|
170
166
|
valueIsNotAmongAllowedAlternatives: {
|
|
171
167
|
title: "Disallowed Alternative of Value",
|
|
172
|
-
generateDescription: ({ allowedAlternatives }) => "This value is not among following allowed alternatives
|
|
168
|
+
generateDescription: ({ allowedAlternatives }) => "This value is not among following allowed alternatives:\n" +
|
|
173
169
|
allowedAlternatives.map((allowedAlternative) => ` ○ ${allowedAlternative}`).join("\n")
|
|
174
170
|
},
|
|
175
171
|
numericValueIsSmallerThanRequiredMinimum: {
|
|
@@ -178,29 +174,28 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
178
174
|
},
|
|
179
175
|
numericValueIsGreaterThanAllowedMaximum: {
|
|
180
176
|
title: "Maximal Numeric Value Exceeding",
|
|
181
|
-
generateDescription: ({ allowedMaximum }) => `This value is greater than
|
|
177
|
+
generateDescription: ({ allowedMaximum }) => `This value is greater than allowed maximal value ${allowedMaximum}.`
|
|
182
178
|
},
|
|
183
179
|
charactersCountIsLessThanRequired: {
|
|
184
180
|
title: "Minimal Characters Count Fall Short",
|
|
185
|
-
generateDescription: ({ minimalCharactersCount, realCharactersCount }) => `This string
|
|
181
|
+
generateDescription: ({ minimalCharactersCount, realCharactersCount }) => `This string has ${realCharactersCount} characters while at least ${minimalCharactersCount} required.`
|
|
186
182
|
},
|
|
187
183
|
charactersCountIsMoreThanAllowed: {
|
|
188
184
|
title: "Maximal Characters Count Exceeding",
|
|
189
|
-
generateDescription: ({ maximalCharactersCount, realCharactersCount }) => `This string
|
|
190
|
-
"as maximum."
|
|
185
|
+
generateDescription: ({ maximalCharactersCount, realCharactersCount }) => `This string has ${realCharactersCount} characters while maximally ${maximalCharactersCount} allowed.`
|
|
191
186
|
},
|
|
192
187
|
charactersCountDoesNotMatchWithSpecified: {
|
|
193
188
|
title: "Fixed Characters Count Mismatch",
|
|
194
|
-
generateDescription: ({ fixedCharactersCount, realCharactersCount }) => `The value has ${realCharactersCount} characters while exactly ${fixedCharactersCount}
|
|
189
|
+
generateDescription: ({ fixedCharactersCount, realCharactersCount }) => `The value has ${realCharactersCount} characters while exactly ${fixedCharactersCount} expected.`
|
|
195
190
|
},
|
|
196
191
|
forbiddenCharactersFound: {
|
|
197
|
-
title: "Forbidden Characters
|
|
198
|
-
generateDescription: ({ foundForbiddenCharacters }) => "
|
|
192
|
+
title: "Forbidden Characters",
|
|
193
|
+
generateDescription: ({ foundForbiddenCharacters }) => "This string including the following characters which has been forbidden:\n" +
|
|
199
194
|
foundForbiddenCharacters.map((character) => `● ${character}`).join("\n")
|
|
200
195
|
},
|
|
201
196
|
regularExpressionMismatch: {
|
|
202
197
|
title: "Regular Expression Mismatch",
|
|
203
|
-
generateDescription: ({ regularExpression }) => `This string
|
|
198
|
+
generateDescription: ({ regularExpression }) => `This string does not match with specified regular expression:\n ${regularExpression.toString()}`
|
|
204
199
|
},
|
|
205
200
|
disallowedBooleanValueVariant: {
|
|
206
201
|
title: "Disallowed Boolean Variant",
|
|
@@ -209,7 +204,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
209
204
|
unsupportedValueType: {
|
|
210
205
|
title: "Unsupported Value Type",
|
|
211
206
|
generateDescription: ({ targetPropertyType }) => `This value has type ${targetPropertyType} which currently not supported as any other type incompatible ` +
|
|
212
|
-
"
|
|
207
|
+
"with JSON."
|
|
213
208
|
}
|
|
214
209
|
},
|
|
215
210
|
throwableErrors: {
|
|
@@ -234,23 +229,22 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
234
229
|
},
|
|
235
230
|
propertyUndefinedabilityNotSpecified: {
|
|
236
231
|
title: "Property Undefinedability has not been Specified",
|
|
237
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the undefined value of the property
|
|
232
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the undefined value of the property " +
|
|
238
233
|
`\`${targetPropertyDotSeparatedQualifiedName}\`. ` +
|
|
239
234
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
240
235
|
},
|
|
241
236
|
propertyNullabilityNotSpecified: {
|
|
242
237
|
title: "Property Nullability has not been Specified",
|
|
243
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the null value of the property
|
|
238
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the null value of the property " +
|
|
244
239
|
`\`${targetPropertyDotSeparatedQualifiedName}\`. ` +
|
|
245
240
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
246
241
|
},
|
|
247
242
|
dataTypeNotSpecified: {
|
|
248
|
-
title: "
|
|
243
|
+
title: "Unsupported or Not Specified Data Type",
|
|
249
244
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, specifiedStringifiedType, documentationPageAnchor }) => ((0, isUndefined_1.default)(specifiedStringifiedType) ?
|
|
250
245
|
"Data type has not been " :
|
|
251
246
|
`Unsupported data type "${specifiedStringifiedType} has been"`) +
|
|
252
247
|
`specified for property/element "${targetPropertyDotSeparatedQualifiedName}". ` +
|
|
253
|
-
"It is possible only with TypeScript error. " +
|
|
254
248
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
255
249
|
},
|
|
256
250
|
unableToDeletePropertyWithOutdatedKey: {
|
|
@@ -263,16 +257,13 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
263
257
|
unableToChangePropertyDescriptors: {
|
|
264
258
|
title: "Unable to Change Property Descriptors",
|
|
265
259
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}" because this ` +
|
|
266
|
-
"property is not configurable while the processing approach is the manipulations with source object
|
|
267
|
-
"\"mustLeaveEvenRenamed\" has not been set to true. " +
|
|
260
|
+
"property is not configurable while the processing approach is the manipulations with source object. " +
|
|
268
261
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
269
262
|
},
|
|
270
263
|
unableToUpdatePropertyValue: {
|
|
271
264
|
title: "Unable to Update Property Value",
|
|
272
265
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `The updating of the property "${targetPropertyDotSeparatedQualifiedName}" has been requested via default ` +
|
|
273
266
|
"value substitution or pre-validation modification while this property is read-only. " +
|
|
274
|
-
"This error has been thrown because the error handling strategy \"onUnableToUnableToUpdatePropertyValue\" " +
|
|
275
|
-
"is \"ErrorHandlingStrategies.throwingOfError\" which is default. " +
|
|
276
267
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
277
268
|
},
|
|
278
269
|
mutuallyExclusiveAssociativeArrayKeysLimitations: {
|
|
@@ -282,33 +273,36 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
282
273
|
"root associative array " :
|
|
283
274
|
`associative array "${targetPropertyDotSeparatedQualifiedName}" `) +
|
|
284
275
|
"what it the contradiction. " +
|
|
285
|
-
"
|
|
276
|
+
"Either allowed keys or forbidden ones can be specified but not both." +
|
|
286
277
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
287
278
|
},
|
|
288
279
|
incompatibleValuesTypesAlternatives: {
|
|
289
280
|
title: "Incompatible Values Types Alternatives",
|
|
290
|
-
generateDescription: ({
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
281
|
+
generateDescription: ({ isIndexedArrayLikeType, documentationPageAnchor }) => "The" +
|
|
282
|
+
(isIndexedArrayLikeType ?
|
|
283
|
+
"`ValuesTypesIDs.indexedArray` (aliased as `Array`) and `ValuesTypesIDs.tuple`" :
|
|
284
|
+
"`ValuesTypesIDs.fixedSchemaObject` (aliased as `Object`) and `ValuesTypesIDs.associativeArray`") +
|
|
285
|
+
"are incompatible alternatives of `ValuesTypesIDs.polymorphic` because from the viewpoint of ECMAScript " +
|
|
286
|
+
"both are the " +
|
|
287
|
+
(isIndexedArrayLikeType ? "`Array`" : "`Object`") +
|
|
288
|
+
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
294
289
|
},
|
|
295
290
|
bothAllowedAndForbiddenCharactersSpecified: {
|
|
296
291
|
title: "Both Allowed And Forbidden Characters Specified",
|
|
297
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "Both allowed and forbidden characters has been specified for property/element " +
|
|
298
|
-
`${targetPropertyDotSeparatedQualifiedName} what it the contradiction
|
|
292
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "Both allowed and forbidden characters has been specified for string-type property/element " +
|
|
293
|
+
`${targetPropertyDotSeparatedQualifiedName} what it the contradiction. ` +
|
|
299
294
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
300
295
|
}
|
|
301
296
|
},
|
|
302
297
|
warnings: {
|
|
303
298
|
preValidationModificationFailed: {
|
|
304
299
|
title: "Pre-validation Modification Failed",
|
|
305
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, stringifiedCaughtError, documentationPageAnchor }) => "The
|
|
300
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, stringifiedCaughtError, documentationPageAnchor }) => "The error has occurred during the pre-validation modification of the property/element " +
|
|
306
301
|
`"${targetPropertyDotSeparatedQualifiedName}".\n` +
|
|
307
302
|
`${stringifiedCaughtError}\n` +
|
|
308
303
|
"This error has been reported as warning because the error handling strategy " +
|
|
309
304
|
"\"onPreValidationModificationFailed\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
310
|
-
"what is not recommended
|
|
311
|
-
"does not respect all possible variations of the source data and could cause the subsequent errors. " +
|
|
305
|
+
"what is not recommended. " +
|
|
312
306
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
313
307
|
},
|
|
314
308
|
unableToDeletePropertyWithOutdatedKey: {
|
|
@@ -316,14 +310,18 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
316
310
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, propertyNewKey, documentationPageAnchor }) => `Unable to delete the property "${targetPropertyDotSeparatedQualifiedName}" after renaming to ` +
|
|
317
311
|
`"${propertyNewKey}" because it is not configurable while the processing approach is the manipulations ` +
|
|
318
312
|
"with source object and \"mustLeaveEvenRenamed\" has not been set to true. " +
|
|
313
|
+
"This error has been reported as warning because the error handling strategy " +
|
|
314
|
+
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
315
|
+
"what is not recommended. " +
|
|
319
316
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
320
317
|
},
|
|
321
318
|
unableToChangePropertyDescriptors: {
|
|
322
319
|
title: "Unable to Change Property Descriptors",
|
|
323
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}"
|
|
320
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}" because this ` +
|
|
321
|
+
"property is not configurable while the processing approach is the manipulations with source object. " +
|
|
324
322
|
"This error has been reported as warning because the error handling strategy " +
|
|
325
323
|
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
326
|
-
"what is not recommended
|
|
324
|
+
"what is not recommended. " +
|
|
327
325
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
328
326
|
},
|
|
329
327
|
unableToUpdatePropertyValue: {
|
|
@@ -331,8 +329,8 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
331
329
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `The updating of the property "${targetPropertyDotSeparatedQualifiedName}" has been requested via default ` +
|
|
332
330
|
"value substitution or pre-validation modification while this property is read-only. " +
|
|
333
331
|
"This error has been reported as warning because the error handling strategy " +
|
|
334
|
-
"\"
|
|
335
|
-
"what is not recommended
|
|
332
|
+
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
333
|
+
"what is not recommended. " +
|
|
336
334
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
337
335
|
}
|
|
338
336
|
},
|