Skip to content

Commit c318f87

Browse files
authored
TaskStepProperties swagger fix (#13971)
1 parent 6fa938b commit c318f87

File tree

9 files changed

+33
-7
lines changed

9 files changed

+33
-7
lines changed

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,14 @@
689689
"definitions": {
690690
"RunRequest": {
691691
"description": "The request parameters for scheduling a run.",
692+
"required": [
693+
"type"
694+
],
692695
"type": "object",
693696
"properties": {
694697
"type": {
695698
"description": "The type of the run request.",
696-
"type": "string",
697-
"readOnly": true
699+
"type": "string"
698700
},
699701
"isArchiveEnabled": {
700702
"description": "The value that indicates whether archiving is enabled for the run or not.",
@@ -1274,6 +1276,9 @@
12741276
},
12751277
"TaskStepProperties": {
12761278
"description": "Base properties for any task step.",
1279+
"required": [
1280+
"type"
1281+
],
12771282
"type": "object",
12781283
"properties": {
12791284
"type": {
@@ -1284,7 +1289,6 @@
12841289
"EncodedTask"
12851290
],
12861291
"type": "string",
1287-
"readOnly": true,
12881292
"x-ms-enum": {
12891293
"name": "StepType",
12901294
"modelAsString": true
@@ -1743,6 +1747,9 @@
17431747
},
17441748
"TaskStepUpdateParameters": {
17451749
"description": "Base properties for updating any task step.",
1750+
"required": [
1751+
"type"
1752+
],
17461753
"type": "object",
17471754
"properties": {
17481755
"type": {
@@ -1753,7 +1760,6 @@
17531760
"EncodedTask"
17541761
],
17551762
"type": "string",
1756-
"readOnly": true,
17571763
"x-ms-enum": {
17581764
"name": "StepType",
17591765
"modelAsString": true
@@ -2293,7 +2299,8 @@
22932299
"DockerBuildStep": {
22942300
"description": "The Docker build step.",
22952301
"required": [
2296-
"dockerFilePath"
2302+
"dockerFilePath",
2303+
"type"
22972304
],
22982305
"type": "object",
22992306
"allOf": [
@@ -2340,7 +2347,8 @@
23402347
"FileTaskStep": {
23412348
"description": "The properties of a task step.",
23422349
"required": [
2343-
"taskFilePath"
2350+
"taskFilePath",
2351+
"type"
23442352
],
23452353
"type": "object",
23462354
"allOf": [
@@ -2370,7 +2378,8 @@
23702378
"EncodedTaskStep": {
23712379
"description": "The properties of a encoded task step.",
23722380
"required": [
2373-
"encodedTaskContent"
2381+
"encodedTaskContent",
2382+
"type"
23742383
],
23752384
"type": "object",
23762385
"allOf": [
@@ -2399,6 +2408,9 @@
23992408
},
24002409
"DockerBuildStepUpdateParameters": {
24012410
"description": "The properties for updating a docker build step.",
2411+
"required": [
2412+
"type"
2413+
],
24022414
"type": "object",
24032415
"allOf": [
24042416
{
@@ -2441,6 +2453,9 @@
24412453
},
24422454
"FileTaskStepUpdateParameters": {
24432455
"description": "The properties of updating a task step.",
2456+
"required": [
2457+
"type"
2458+
],
24442459
"type": "object",
24452460
"allOf": [
24462461
{
@@ -2468,6 +2483,9 @@
24682483
},
24692484
"EncodedTaskStepUpdateParameters": {
24702485
"description": "The properties for updating encoded task step.",
2486+
"required": [
2487+
"type"
2488+
],
24712489
"type": "object",
24722490
"allOf": [
24732491
{

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"cpu": 2
1717
},
1818
"step": {
19+
"type": "Docker",
1920
"imageNames": [
2021
"azurerest:testtag"
2122
],

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"cpu": 2
1717
},
1818
"step": {
19+
"type": "Docker",
1920
"imageNames": [
2021
"azurerest:testtag"
2122
],

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"cpu": 2
1717
},
1818
"step": {
19+
"type": "Docker",
1920
"imageNames": [
2021
"azurerest:testtag"
2122
],

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"cpu": 3
1313
},
1414
"step": {
15+
"type": "Docker",
1516
"imageNames": [
1617
"azurerest:testtag1"
1718
],

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"cpu": 3
1313
},
1414
"step": {
15+
"type": "Docker",
1516
"imageNames": [
1617
"azurerest:testtag1"
1718
],

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"cpu": 2
1717
},
1818
"step": {
19+
"type": "Docker",
1920
"imageNames": [
2021
"azurerest:testtag"
2122
],

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"cpu": 3
1313
},
1414
"step": {
15+
"type": "Docker",
1516
"imageNames": [
1617
"azurerest:testtag1"
1718
],

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"cpu": 3
1313
},
1414
"step": {
15+
"type": "Docker",
1516
"imageNames": [
1617
"azurerest:testtag1"
1718
],

0 commit comments

Comments
 (0)