File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/angular_devkit/core/src/json/schema Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,11 @@ export type PromptProvider = (definitions: Array<PromptDefinition>)
113
113
114
114
export interface SchemaRegistry {
115
115
compile ( schema : Object ) : Observable < SchemaValidator > ;
116
+ /**
117
+ * @deprecated since 11.2 without replacement.
118
+ * Producing a flatten schema document does not in all cases produce a schema with identical behavior to the original.
119
+ * See: https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.appendix.B.2
120
+ */
116
121
flatten ( schema : JsonObject | string ) : Observable < JsonObject > ;
117
122
addFormat ( format : SchemaFormat ) : void ;
118
123
addSmartDefaultProvider < T > ( source : string , provider : SmartDefaultProvider < T > ) : void ;
Original file line number Diff line number Diff line change @@ -239,6 +239,9 @@ export class CoreSchemaRegistry implements SchemaRegistry {
239
239
*
240
240
* @param schema The schema or URI to flatten.
241
241
* @returns An Observable of the flattened schema object.
242
+ * @deprecated since 11.2 without replacement.
243
+ * Producing a flatten schema document does not in all cases produce a schema with identical behavior to the original.
244
+ * See: https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.appendix.B.2
242
245
*/
243
246
flatten ( schema : JsonObject ) : Observable < JsonObject > {
244
247
this . _ajv . removeSchema ( schema ) ;
You can’t perform that action at this time.
0 commit comments