|
1 | 1 | { |
2 | 2 | "$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json", |
3 | | - "description": "This resource manages PowerShell resources using PSResourceGet.", |
| 3 | + "description": "Manage PowerShell resources using PSResourceGet.", |
4 | 4 | "type": "Microsoft.PowerShell.PSResourceGet/PSResources", |
5 | 5 | "version": "0.0.1", |
6 | 6 | "get": { |
|
38 | 38 | }, |
39 | 39 | "schema": { |
40 | 40 | "embedded": { |
41 | | - "$schema": "http://json-schema.org/draft-04/schema#", |
| 41 | + "$schema": "http://json-schema.org/draft-2020-12/schema#", |
42 | 42 | "title": "PSResources", |
43 | 43 | "type": "object", |
44 | 44 | "additionalProperties": false, |
45 | 45 | "properties": { |
46 | 46 | "repositoryName": { |
47 | | - "type": [ |
48 | | - "null", |
49 | | - "string" |
50 | | - ] |
| 47 | + "title": "Repository Name", |
| 48 | + "description": "The name of the repository from where the resources are acquired.", |
| 49 | + "type": "string" |
51 | 50 | }, |
52 | 51 | "scope": { |
53 | | - "$ref": "#/definitions/Scope", |
| 52 | + "title": "Scope", |
| 53 | + "description": "The scope of the resources. Can be 'CurrentUser' or 'AllUsers'.", |
| 54 | + "$ref": "#/$defs/Scope", |
54 | 55 | "writeOnly": true |
55 | 56 | }, |
56 | 57 | "resources": { |
57 | | - "type": [ |
58 | | - "array", |
59 | | - "null" |
60 | | - ], |
| 58 | + "title": "Resources", |
| 59 | + "description": "The list of resources to manage.", |
| 60 | + "type": "array", |
61 | 61 | "items": { |
62 | | - "$ref": "#/definitions/PSResource" |
| 62 | + "$ref": "#/$defs/PSResource" |
63 | 63 | } |
64 | 64 | } |
65 | 65 | }, |
66 | | - "definitions": { |
| 66 | + "$defs": { |
67 | 67 | "Scope": { |
68 | 68 | "type": "integer", |
69 | | - "description": "", |
| 69 | + "title": "Scope", |
| 70 | + "description": "Scope of the resource installation.", |
70 | 71 | "enum": [ |
71 | 72 | "CurrentUser", |
72 | 73 | "AllUsers" |
|
77 | 78 | "additionalProperties": false, |
78 | 79 | "properties": { |
79 | 80 | "name": { |
80 | | - "type": [ |
81 | | - "null", |
82 | | - "string" |
83 | | - ] |
| 81 | + "title": "Name", |
| 82 | + "description": "The name of the resource.", |
| 83 | + "type": "string" |
84 | 84 | }, |
85 | 85 | "version": { |
86 | | - "type": [ |
87 | | - "null", |
88 | | - "string" |
89 | | - ] |
| 86 | + "title": "Version", |
| 87 | + "description": "The version range of the resource.", |
| 88 | + "type": "string" |
90 | 89 | }, |
91 | 90 | "scope": { |
92 | | - "$ref": "#/definitions/Scope", |
| 91 | + "title": "Scope", |
| 92 | + "description": "The scope of the resource. Can be 'CurrentUser' or 'AllUsers'.", |
| 93 | + "$ref": "#/$defs/Scope", |
93 | 94 | "writeOnly": true |
94 | 95 | }, |
95 | 96 | "repositoryName": { |
96 | | - "type": [ |
97 | | - "null", |
98 | | - "string" |
99 | | - ] |
| 97 | + "title": "Repository Name", |
| 98 | + "description": "The name of the repository from where the resource is acquired.", |
| 99 | + "type": "string" |
100 | 100 | }, |
101 | 101 | "preRelease": { |
| 102 | + "title": "Pre-Release version", |
| 103 | + "description": "Indicates whether to include pre-release versions of the resource.", |
102 | 104 | "type": "boolean", |
103 | 105 | "writeOnly": true |
104 | 106 | }, |
|
0 commit comments