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
This commit is contained in:
Alan Agius 2021-04-12 11:12:49 +02:00 committed by Zach Arend
parent 0d55d4557f
commit 5332a4a919
2 changed files with 4 additions and 4 deletions

View File

@ -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": {

View File

@ -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": {