Skip to content

Commit 55a2a6c

Browse files
authored
refactor(material/schematics): update $schema and id keywords (#22459)
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
1 parent 4b06b90 commit 55a2a6c

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

src/cdk/schematics/ng-add/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "angular-cdk-ng-add",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "angular-cdk-ng-add",
44
"title": "Angular CDK ng-add",
55
"type": "object",
66
"properties": {

src/cdk/schematics/ng-generate/drag-drop/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "CdkSchematicsDragDrop",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "CdkSchematicsDragDrop",
44
"title": "Angular CDK Drag and Drop schematic",
55
"type": "object",
66
"properties": {

src/material/schematics/ng-add/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "angular-material-ng-add",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "angular-material-ng-add",
44
"title": "Angular Material ng-add schematic",
55
"type": "object",
66
"properties": {

src/material/schematics/ng-generate/address-form/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsMaterialAddressForm",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsMaterialAddressForm",
44
"title": "Material Address Form Options Schema",
55
"type": "object",
66
"properties": {

src/material/schematics/ng-generate/dashboard/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsMaterialDashboard",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsMaterialDashboard",
44
"title": "Material Dashboard Options Schema",
55
"type": "object",
66
"properties": {

src/material/schematics/ng-generate/navigation/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsMaterialNavigation",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsMaterialNavigation",
44
"title": "Material Navigation Options Schema",
55
"type": "object",
66
"properties": {

src/material/schematics/ng-generate/table/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsMaterialTable",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsMaterialTable",
44
"title": "Material Table Options Schema",
55
"type": "object",
66
"properties": {

src/material/schematics/ng-generate/theming-api/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsMaterialThemingApi",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsMaterialThemingApi",
44
"title": "Material Theming API migration",
55
"type": "object",
66
"properties": {}

src/material/schematics/ng-generate/tree/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsMaterialTree",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsMaterialTree",
44
"title": "Material Tree Options Schema",
55
"type": "object",
66
"properties": {

0 commit comments

Comments
 (0)