File tree 3 files changed +1
-20
lines changed
3 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,5 @@ export declare class CoreSchemaRegistry implements SchemaRegistry {
76
76
private static _set ;
77
77
private _applySmartDefaults ;
78
78
useXDeprecatedProvider ( onUsage : ( message : string ) => void ) : void ;
79
- /**
80
- * Workaround to avoid a breaking change in downstream schematics.
81
- * @deprecated will be removed in version 13.
82
- */
83
- private _replaceDeprecatedSchemaIdKeyword ;
84
79
private normalizeDataPathArr ;
85
80
}
Original file line number Diff line number Diff line change @@ -196,7 +196,6 @@ class CoreSchemaRegistry {
196
196
return rxjs_1 . from ( this . _flatten ( schema ) ) ;
197
197
}
198
198
async _flatten ( schema ) {
199
- this . _replaceDeprecatedSchemaIdKeyword ( schema ) ;
200
199
this . _ajv . removeSchema ( schema ) ;
201
200
this . _currentCompilationSchemaInfo = undefined ;
202
201
const validate = await this . _ajv . compileAsync ( schema ) ;
@@ -233,7 +232,6 @@ class CoreSchemaRegistry {
233
232
if ( typeof schema === 'boolean' ) {
234
233
return async ( data ) => ( { success : schema , data } ) ;
235
234
}
236
- this . _replaceDeprecatedSchemaIdKeyword ( schema ) ;
237
235
const schemaInfo = {
238
236
smartDefaultRecord : new Map ( ) ,
239
237
promptDefinitions : [ ] ,
@@ -544,18 +542,6 @@ class CoreSchemaRegistry {
544
542
errors : false ,
545
543
} ) ;
546
544
}
547
- /**
548
- * Workaround to avoid a breaking change in downstream schematics.
549
- * @deprecated will be removed in version 13.
550
- */
551
- _replaceDeprecatedSchemaIdKeyword ( schema ) {
552
- if ( typeof schema . id === 'string' ) {
553
- schema . $id = schema . id ;
554
- delete schema . id ;
555
- // eslint-disable-next-line no-console
556
- console . warn ( `"${ schema . $id } " schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.` ) ;
557
- }
558
- }
559
545
normalizeDataPathArr ( it ) {
560
546
return it . dataPathArr
561
547
. slice ( 1 , it . dataLevel + 1 )
Original file line number Diff line number Diff line change 1
- Tue Aug 10 2021 20:23:49 GMT+0000 (Coordinated Universal Time)
1
+ Wed Aug 11 2021 07:45:59 GMT+0000 (Coordinated Universal Time)
You can’t perform that action at this time.
0 commit comments