Skip to content

Commit c4d1a58

Browse files
fix enums
1 parent 0a3987c commit c4d1a58

2 files changed

Lines changed: 23 additions & 35 deletions

File tree

src/dsc/psresources.dsc.resource.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,9 @@
6767
"Scope": {
6868
"type": "integer",
6969
"description": "",
70-
"x-enumNames": [
70+
"enum": [
7171
"CurrentUser",
7272
"AllUsers"
73-
],
74-
"enum": [
75-
0,
76-
1
7773
]
7874
},
7975
"PSResource": {

src/dsc/repository.dsc.resource.json

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -44,50 +44,42 @@
4444
"additionalProperties": false,
4545
"properties": {
4646
"name": {
47-
"type": [
48-
"null",
49-
"string"
50-
]
47+
"type": [
48+
"null",
49+
"string"
50+
]
5151
},
5252
"uri": {
53-
"type": [
54-
"null",
55-
"string"
56-
]
53+
"type": [
54+
"null",
55+
"string"
56+
]
5757
},
5858
"trusted": {
59-
"type": "boolean"
59+
"type": "boolean"
6060
},
6161
"priority": {
62-
"type": "integer"
62+
"type": "integer"
6363
},
6464
"repositoryType": {
65-
"$ref": "#/definitions/RepositoryType"
65+
"$ref": "#/definitions/RepositoryType"
6666
},
6767
"_exists": {
68-
"type": "boolean"
68+
"type": "boolean"
6969
}
7070
},
7171
"definitions": {
7272
"RepositoryType": {
73-
"type": "integer",
74-
"description": "",
75-
"x-enumNames": [
76-
"Unknown",
77-
"V2",
78-
"V3",
79-
"Local",
80-
"NugetServer",
81-
"ContainerRegistry"
82-
],
83-
"enum": [
84-
0,
85-
1,
86-
2,
87-
3,
88-
4,
89-
5
90-
]
73+
"type": "integer",
74+
"description": "",
75+
"enum": [
76+
"Unknown",
77+
"V2",
78+
"V3",
79+
"Local",
80+
"NugetServer",
81+
"ContainerRegistry"
82+
]
9183
}
9284
}
9385
}

0 commit comments

Comments
 (0)