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": "",

packages/angular/cli/commands/generate.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/generate.json",
44
"description": "Generates and/or modifies files based on a schematic.",
55
"$longDescription": "",

packages/angular/cli/commands/help.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/help.json",
44
"description": "Lists available commands and their short descriptions.",
55
"$longDescription": "./help-long.md",

packages/angular/cli/commands/lint.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/lint.json",
44
"description": "Runs linting tools on Angular app code in a given project folder.",
55
"$longDescription": "./lint-long.md",

packages/angular/cli/commands/new.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/new.json",
44
"description": "Creates a new workspace and an initial Angular application.",
55
"$longDescription": "./new.md",

packages/angular/cli/commands/run.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/run.json",
44
"description": "Runs an Architect target with an optional custom builder configuration defined in your project.",
55
"$longDescription": "./run-long.md",

packages/angular/cli/commands/serve.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/serve.json",
44
"description": "Builds and serves your app, rebuilding on file changes.",
55
"$longDescription": "",

packages/angular/cli/commands/test.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/test.json",
44
"description": "Runs unit tests in a project.",
55
"$longDescription": "./test-long.md",

packages/angular/cli/commands/update.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/update.json",
44
"description": "Updates your application and its dependencies. See https://update.angular.io/",
55
"$longDescription": "./update-long.md",

packages/angular/cli/commands/version.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/version.json",
44
"description": "Outputs Angular CLI version.",
55
"$longDescription": "",

packages/angular/cli/src/commands/update/schematic/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": "SchematicsUpdateSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsUpdateSchema",
44
"title": "Schematic Options Schema",
55
"type": "object",
66
"properties": {

packages/angular/pwa/pwa/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": "SchematicsAngularPWA",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularPWA",
44
"title": "Angular PWA Options Schema",
55
"type": "object",
66
"properties": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
33
"type": "object"
44
}

packages/angular_devkit/architect/builders/operator-schema.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
"description": "All input types of builders that perform operations on one or multiple sub-builders.",
44
"type": "object",
55
"properties": {

packages/angular_devkit/architect/src/builders-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": "BuildersSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "BuildersSchema",
44
"title": "Builders schema for validating a list of builders.",
55
"type": "object",
66
"properties": {

packages/angular_devkit/architect/src/input-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": "BuilderInputSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "BuilderInputSchema",
44
"title": "Input schema for builders.",
55
"type": "object",
66
"properties": {

packages/angular_devkit/architect/src/output-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": "BuilderOutputSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "BuilderOutputSchema",
44
"title": "Output schema for builders.",
55
"type": "object",
66
"properties": {

packages/angular_devkit/architect/src/progress-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": "BuilderProgressSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "BuilderProgressSchema",
44
"title": "Progress schema for builders.",
55
"type": "object",
66
"allOf": [

packages/angular_devkit/architect/src/targets-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": "ArchitectTargets",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "ArchitectTargets",
44
"title": "Targets schema for validating Architect targets configuration.",
55
"type": "object",
66
"description": "A map of available project targets.",

packages/angular_devkit/build_angular/src/browser/schema.json

Lines changed: 2 additions & 3 deletions
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
"title": "Webpack browser schema for Build Facade.",
44
"description": "Browser target options",
55
"type": "object",
@@ -14,8 +14,7 @@
1414
},
1515
"main": {
1616
"type": "string",
17-
"description": "The full path for the main entry point to the app, relative to the current workspace.",
18-
"$valueDescription": "fileName"
17+
"description": "The full path for the main entry point to the app, relative to the current workspace."
1918
},
2019
"polyfills": {
2120
"type": "string",

packages/angular_devkit/build_angular/src/dev-server/schema.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
"title": "Dev Server Target",
44
"description": "Dev Server target options for Build Facade.",
55
"type": "object",

packages/angular_devkit/build_angular/src/server/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": "BuildAngularWebpackServerSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "BuildAngularWebpackServerSchema",
44
"title": "Universal Target",
55
"type": "object",
66
"properties": {

packages/angular_devkit/build_webpack/src/webpack-dev-server/schema.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
"title": "Webpack Dev-Server Builder",
44
"description": "Webpack Dev-Server Builder schema for Architect.",
55
"type": "object",

packages/angular_devkit/build_webpack/src/webpack/schema.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
"title": "Webpack Builder.",
44
"description": "Webpack Builder schema for Architect.",
55
"type": "object",

packages/angular_devkit/schematics/collection-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": "SchematicsCollectionSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsCollectionSchema",
44
"title": "Collection Schema for validating a 'collection.json'.",
55
"type": "object",
66
"properties": {

packages/angular_devkit/schematics_cli/blank/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": "SchematicsSchematicSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsSchematicSchema",
44
"title": "Schematic Options Schema",
55
"type": "object",
66
"properties": {

packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/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": "MyFullSchematicsSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "MyFullSchematicsSchema",
44
"title": "My Full Schematics Schema",
55
"type": "object",
66
"properties": {

packages/angular_devkit/schematics_cli/schematic/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": "SchematicsSchematicSchema",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsSchematicSchema",
44
"title": "Schematic Options Schema",
55
"type": "object",
66
"properties": {

packages/schematics/angular/app-shell/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": "SchematicsAngularAppShell",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularAppShell",
44
"title": "Angular AppShell Options Schema",
55
"type": "object",
66
"description": "Generates an app shell for running a server-side version of an app.",

packages/schematics/angular/application/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": "SchematicsAngularApp",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularApp",
44
"title": "Angular Application Options Schema",
55
"type": "object",
66
"description": "Generates a new basic app definition in the \"projects\" subfolder of the workspace.",

packages/schematics/angular/class/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": "SchematicsAngularClass",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularClass",
44
"title": "Angular Class Options Schema",
55
"type": "object",
66
"description": "Creates a new generic class definition in the given or default project.",

packages/schematics/angular/component/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": "SchematicsAngularComponent",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularComponent",
44
"title": "Angular Component Options Schema",
55
"type": "object",
66
"description": "Creates a new generic component definition in the given or default project.",

packages/schematics/angular/directive/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": "SchematicsAngularDirective",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularDirective",
44
"title": "Angular Directive Options Schema",
55
"type": "object",
66
"description": "Creates a new generic directive definition in the given or default project.",

packages/schematics/angular/e2e/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": "SchematicsAngularE2eApp",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularE2eApp",
44
"title": "Angular e2e Application Options Schema",
55
"type": "object",
66
"additionalProperties": false,

packages/schematics/angular/enum/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": "SchematicsAngularEnum",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularEnum",
44
"title": "Angular Enum Options Schema",
55
"type": "object",
66
"description": "Generates a new, generic enum definition for the given or default project.",

packages/schematics/angular/guard/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": "SchematicsAngularGuard",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularGuard",
44
"title": "Angular Guard Options Schema",
55
"type": "object",
66
"description": "Generates a new, generic route guard definition in the given or default project.",

packages/schematics/angular/interceptor/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": "SchematicsAngularInterceptor",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularInterceptor",
44
"title": "Angular Interceptor Options Schema",
55
"type": "object",
66
"additionalProperties": false,

packages/schematics/angular/interface/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": "SchematicsAngularInterface",
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "SchematicsAngularInterface",
44
"title": "Angular Interface Options Schema",
55
"type": "object",
66
"additionalProperties": false,

0 commit comments

Comments
 (0)