Skip to content

Commit 076ab0f

Browse files
alan-agius4clydin
authored andcommitted
refactor: add correct schema keys
With this change - 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 `draft-07` can be found https://json-schema.org/draft-07/json-schema-release-notes.html
1 parent 0875313 commit 076ab0f

File tree

59 files changed

+95
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+95
-94
lines changed

packages/angular/cli/commands/add.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/add.json",
44
"description": "Adds support for an external library to your project.",
55
"$longDescription": "./add.md",

packages/angular/cli/commands/analytics.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/analytics.json",
44
"description": "Configures the gathering of Angular CLI usage metrics. See https://angular.io/cli/usage-analytics-gathering.",
55
"$longDescription": "./analytics-long.md",

packages/angular/cli/commands/build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/build.json",
44
"description": "Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.",
55
"$longDescription": "./build-long.md",

packages/angular/cli/commands/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/config.json",
44
"description": "Retrieves or sets Angular configuration values in the angular.json file for the workspace.",
55
"$longDescription": "",

packages/angular/cli/commands/definitions.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/definitions.json",
44

55
"definitions": {
@@ -38,6 +38,7 @@
3838
}
3939
},
4040
"schematic": {
41+
"type": "object",
4142
"properties": {
4243
"dryRun": {
4344
"type": "boolean",
@@ -54,6 +55,7 @@
5455
}
5556
},
5657
"interactive": {
58+
"type": "object",
5759
"properties": {
5860
"interactive": {
5961
"type": "boolean",

packages/angular/cli/commands/deploy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/deploy.json",
44
"description": "Invokes the deploy builder for a specified project or for the default project in the workspace.",
55
"$longDescription": "./deploy-long.md",

packages/angular/cli/commands/doc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/doc.json",
44
"description": "Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.",
55
"$longDescription": "",

packages/angular/cli/commands/e2e.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/e2e.json",
44
"description": "Builds and serves an Angular app, then runs end-to-end tests using Protractor.",
55
"$longDescription": "./e2e-long.md",

packages/angular/cli/commands/easter-egg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/easter-egg.json",
44
"description": "",
55
"$longDescription": "",

packages/angular/cli/commands/extract-i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "ng-cli://commands/extract-i18n.json",
44
"description": "Extracts i18n messages from source code.",
55
"$longDescription": "",

0 commit comments

Comments
 (0)