From 5332a4a9191e557d946eb6f3ccc623819462cf0f Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 12 Apr 2021 11:12:49 +0200 Subject: [PATCH] refactor: update `$schema` and `id` keywords (#41574) In Angular CLI version 12, JSON Schema `draft-04` will no longer be supported. Therefore `id` will need to be updated to `$id`. - We replace id with $id, this no longer valid in draft-07. - Replace all $schemas to http://json-schema.org/draft-07/schema, this is needed to "pin" the schema to draft-07. More information about this draft can be found https://json-schema.org/draft-07/json-schema-release-notes.html PR Close #41574 --- packages/elements/schematics/ng-add/schema.json | 4 ++-- packages/localize/schematics/ng-add/schema.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/elements/schematics/ng-add/schema.json b/packages/elements/schematics/ng-add/schema.json index 42d57ecf1d..0debc51897 100644 --- a/packages/elements/schematics/ng-add/schema.json +++ b/packages/elements/schematics/ng-add/schema.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/schema", - "id": "SchematicsAngularElementsNgAdd", + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "SchematicsAngularElementsNgAdd", "title": "Angular Elements Ng Add Schema", "type": "object", "properties": { diff --git a/packages/localize/schematics/ng-add/schema.json b/packages/localize/schematics/ng-add/schema.json index 1c255911ce..920343fb40 100644 --- a/packages/localize/schematics/ng-add/schema.json +++ b/packages/localize/schematics/ng-add/schema.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/schema", - "id": "SchematicsAngularLocalizeNgAdd", + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "SchematicsAngularLocalizeNgAdd", "title": "Angular Localize Ng Add Schema", "type": "object", "properties": {