Alan Agius 076ab0f11f 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
2021-04-13 10:51:12 -04:00

31 lines
819 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsAngularServiceWorker",
"title": "Angular Service Worker Options Schema",
"type": "object",
"additionalProperties": false,
"description": "Pass this schematic to the \"run\" command to create a service worker",
"properties": {
"project": {
"type": "string",
"description": "The name of the project.",
"$default": {
"$source": "projectName"
}
},
"target": {
"type": "string",
"description": "The target to apply service worker to.",
"default": "build"
},
"configuration": {
"type": "string",
"description": "The configuration to apply service worker to.",
"x-deprecated": "No longer has an effect."
}
},
"required": [
"project"
]
}