Skip to content

Commit 138df5f

Browse files
authored
Fix some swagger correctness for AppPlatform (#13927)
* Fix some swagger correctness for AppPlatform * Format with prettier * Fix swagger correctness in other versions
1 parent 719b74f commit 138df5f

File tree

3 files changed

+107
-25
lines changed

3 files changed

+107
-25
lines changed

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,23 +2470,43 @@
24702470
"properties": {
24712471
"serviceRuntimeSubnetId": {
24722472
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime",
2473-
"type": "string"
2473+
"type": "string",
2474+
"x-ms-mutability": [
2475+
"create",
2476+
"read"
2477+
]
24742478
},
24752479
"appSubnetId": {
24762480
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps",
2477-
"type": "string"
2481+
"type": "string",
2482+
"x-ms-mutability": [
2483+
"create",
2484+
"read"
2485+
]
24782486
},
24792487
"serviceCidr": {
24802488
"description": "Azure Spring Cloud service reserved CIDR",
2481-
"type": "string"
2489+
"type": "string",
2490+
"x-ms-mutability": [
2491+
"create",
2492+
"read"
2493+
]
24822494
},
24832495
"serviceRuntimeNetworkResourceGroup": {
24842496
"description": "Name of the resource group containing network resources of Azure Spring Cloud Service Runtime",
2485-
"type": "string"
2497+
"type": "string",
2498+
"x-ms-mutability": [
2499+
"create",
2500+
"read"
2501+
]
24862502
},
24872503
"appNetworkResourceGroup": {
24882504
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
2489-
"type": "string"
2505+
"type": "string",
2506+
"x-ms-mutability": [
2507+
"create",
2508+
"read"
2509+
]
24902510
},
24912511
"outboundIPs": {
24922512
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
@@ -2818,11 +2838,16 @@
28182838
},
28192839
"fqdn": {
28202840
"description": "Fully qualified dns Name.",
2821-
"type": "string"
2841+
"type": "string",
2842+
"x-ms-mutability": [
2843+
"create",
2844+
"read"
2845+
]
28222846
},
28232847
"httpsOnly": {
28242848
"description": "Indicate if only https is allowed.",
2825-
"type": "boolean"
2849+
"type": "boolean",
2850+
"default": false
28262851
},
28272852
"createdTime": {
28282853
"format": "date-time",
@@ -2832,7 +2857,8 @@
28322857
},
28332858
"temporaryDisk": {
28342859
"$ref": "#/definitions/TemporaryDisk",
2835-
"description": "Temporary disk settings"
2860+
"description": "Temporary disk settings",
2861+
"default": "/tmp"
28362862
},
28372863
"persistentDisk": {
28382864
"$ref": "#/definitions/PersistentDisk",
@@ -3369,6 +3395,7 @@
33693395
},
33703396
"runtimeVersion": {
33713397
"description": "Runtime version",
3398+
"default": "Java_8",
33723399
"enum": [
33733400
"Java_8",
33743401
"Java_11",

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2020-11-01-preview/appplatform.json

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3057,23 +3057,43 @@
30573057
"properties": {
30583058
"serviceRuntimeSubnetId": {
30593059
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime",
3060-
"type": "string"
3060+
"type": "string",
3061+
"x-ms-mutability": [
3062+
"create",
3063+
"read"
3064+
]
30613065
},
30623066
"appSubnetId": {
30633067
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps",
3064-
"type": "string"
3068+
"type": "string",
3069+
"x-ms-mutability": [
3070+
"create",
3071+
"read"
3072+
]
30653073
},
30663074
"serviceCidr": {
30673075
"description": "Azure Spring Cloud service reserved CIDR",
3068-
"type": "string"
3076+
"type": "string",
3077+
"x-ms-mutability": [
3078+
"create",
3079+
"read"
3080+
]
30693081
},
30703082
"serviceRuntimeNetworkResourceGroup": {
30713083
"description": "Name of the resource group containing network resources of Azure Spring Cloud Service Runtime",
3072-
"type": "string"
3084+
"type": "string",
3085+
"x-ms-mutability": [
3086+
"create",
3087+
"read"
3088+
]
30733089
},
30743090
"appNetworkResourceGroup": {
30753091
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
3076-
"type": "string"
3092+
"type": "string",
3093+
"x-ms-mutability": [
3094+
"create",
3095+
"read"
3096+
]
30773097
},
30783098
"outboundIPs": {
30793099
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
@@ -3404,11 +3424,16 @@
34043424
},
34053425
"fqdn": {
34063426
"description": "Fully qualified dns Name.",
3407-
"type": "string"
3427+
"type": "string",
3428+
"x-ms-mutability": [
3429+
"create",
3430+
"read"
3431+
]
34083432
},
34093433
"httpsOnly": {
34103434
"description": "Indicate if only https is allowed.",
3411-
"type": "boolean"
3435+
"type": "boolean",
3436+
"default": false
34123437
},
34133438
"createdTime": {
34143439
"format": "date-time",
@@ -3418,15 +3443,17 @@
34183443
},
34193444
"temporaryDisk": {
34203445
"$ref": "#/definitions/TemporaryDisk",
3421-
"description": "Temporary disk settings"
3446+
"description": "Temporary disk settings",
3447+
"default": "/tmp"
34223448
},
34233449
"persistentDisk": {
34243450
"$ref": "#/definitions/PersistentDisk",
34253451
"description": "Persistent disk settings"
34263452
},
34273453
"enableEndToEndTLS": {
34283454
"description": "Indicate if end to end TLS is enabled.",
3429-
"type": "boolean"
3455+
"type": "boolean",
3456+
"default": false
34303457
}
34313458
}
34323459
},
@@ -3952,6 +3979,7 @@
39523979
},
39533980
"runtimeVersion": {
39543981
"description": "Runtime version",
3982+
"default": "Java_8",
39553983
"enum": [
39563984
"Java_8",
39573985
"Java_11",

specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2020-07-01/appplatform.json

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3033,23 +3033,43 @@
30333033
"properties": {
30343034
"serviceRuntimeSubnetId": {
30353035
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime",
3036-
"type": "string"
3036+
"type": "string",
3037+
"x-ms-mutability": [
3038+
"create",
3039+
"read"
3040+
]
30373041
},
30383042
"appSubnetId": {
30393043
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps",
3040-
"type": "string"
3044+
"type": "string",
3045+
"x-ms-mutability": [
3046+
"create",
3047+
"read"
3048+
]
30413049
},
30423050
"serviceCidr": {
30433051
"description": "Azure Spring Cloud service reserved CIDR",
3044-
"type": "string"
3052+
"type": "string",
3053+
"x-ms-mutability": [
3054+
"create",
3055+
"read"
3056+
]
30453057
},
30463058
"serviceRuntimeNetworkResourceGroup": {
30473059
"description": "Name of the resource group containing network resources of Azure Spring Cloud Service Runtime",
3048-
"type": "string"
3060+
"type": "string",
3061+
"x-ms-mutability": [
3062+
"create",
3063+
"read"
3064+
]
30493065
},
30503066
"appNetworkResourceGroup": {
30513067
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
3052-
"type": "string"
3068+
"type": "string",
3069+
"x-ms-mutability": [
3070+
"create",
3071+
"read"
3072+
]
30533073
},
30543074
"outboundIPs": {
30553075
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
@@ -3380,11 +3400,16 @@
33803400
},
33813401
"fqdn": {
33823402
"description": "Fully qualified dns Name.",
3383-
"type": "string"
3403+
"type": "string",
3404+
"x-ms-mutability": [
3405+
"create",
3406+
"read"
3407+
]
33843408
},
33853409
"httpsOnly": {
33863410
"description": "Indicate if only https is allowed.",
3387-
"type": "boolean"
3411+
"type": "boolean",
3412+
"default": false
33883413
},
33893414
"createdTime": {
33903415
"format": "date-time",
@@ -3394,7 +3419,8 @@
33943419
},
33953420
"temporaryDisk": {
33963421
"$ref": "#/definitions/TemporaryDisk",
3397-
"description": "Temporary disk settings"
3422+
"description": "Temporary disk settings",
3423+
"default": "/tmp"
33983424
},
33993425
"persistentDisk": {
34003426
"$ref": "#/definitions/PersistentDisk",
@@ -3924,6 +3950,7 @@
39243950
},
39253951
"runtimeVersion": {
39263952
"description": "Runtime version",
3953+
"default": "Java_8",
39273954
"enum": [
39283955
"Java_8",
39293956
"Java_11",

0 commit comments

Comments
 (0)