@angular-devkit/core 13.2.0-rc.1 → 13.2.3
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/package.json
CHANGED
|
@@ -173,9 +173,6 @@ class CoreSchemaRegistry {
|
|
|
173
173
|
fullReference = id + fullReference;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
if (fullReference.startsWith('#')) {
|
|
177
|
-
fullReference = fullReference.slice(0, -1);
|
|
178
|
-
}
|
|
179
176
|
const resolvedSchema = this._ajv.getSchema(fullReference);
|
|
180
177
|
return {
|
|
181
178
|
context: resolvedSchema === null || resolvedSchema === void 0 ? void 0 : resolvedSchema.schemaEnv.validate,
|
|
@@ -14,6 +14,7 @@ function addUndefinedDefaults(value, _pointer, schema) {
|
|
|
14
14
|
if (typeof schema === 'boolean' || schema === undefined) {
|
|
15
15
|
return value;
|
|
16
16
|
}
|
|
17
|
+
value !== null && value !== void 0 ? value : (value = schema.default);
|
|
17
18
|
const types = (0, utility_1.getTypesOfSchema)(schema);
|
|
18
19
|
if (types.size === 0) {
|
|
19
20
|
return value;
|