Skip to content

Commit a0894c7

Browse files
TimLovellSmithfearthecowboy
authored andcommitted
Fix nesting of RedisCreateProperties inside RedisResourceProperties (#746)
* Fix incorrect properties of type RedisCreateProperties inside RedisResourceProperties (with "x-ms-client-flatten": true). * Fix casing of property names, and move Sku out of RedisProperties, since 'required' apaprently doesn't work on inherited properties.
1 parent 4d32016 commit a0894c7

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

arm-redis/2015-08-01/swagger/redis.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,15 @@
412412
},
413413
"RedisProperties": {
414414
"properties": {
415-
"RedisVersion": {
415+
"redisVersion": {
416416
"type": "string",
417417
"description": "RedisVersion parameter has been deprecated. As such, it is no longer necessary to provide this parameter and any value specified is ignored."
418418
},
419419
"sku": {
420420
"$ref": "#/definitions/Sku",
421421
"description": "What SKU of Redis cache to deploy."
422422
},
423-
"RedisConfiguration": {
423+
"redisConfiguration": {
424424
"type": "object",
425425
"additionalProperties": {
426426
"type": "string"

arm-redis/2016-04-01/swagger/redis.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@
669669
},
670670
"RedisProperties": {
671671
"properties": {
672-
"RedisConfiguration": {
672+
"redisConfiguration": {
673673
"type": "object",
674674
"additionalProperties": {
675675
"type": "string"
@@ -824,7 +824,11 @@
824824
},
825825
"RedisResourceProperties": {
826826
"properties": {
827-
"RedisVersion": {
827+
"sku": {
828+
"$ref": "#/definitions/Sku",
829+
"description": "The SKU of the Redis cache to deploy."
830+
},
831+
"redisVersion": {
828832
"readOnly": true,
829833
"type": "string",
830834
"description": "Redis version."
@@ -850,12 +854,13 @@
850854
"type": "integer",
851855
"format": "int32",
852856
"description": "Redis SSL port."
853-
},
854-
"properties": {
855-
"$ref": "#/definitions/RedisCreateProperties",
856-
"x-ms-client-flatten": true
857857
}
858858
},
859+
"allOf": [
860+
{
861+
"$ref": "#/definitions/RedisProperties"
862+
}
863+
],
859864
"description": "Parameters describing a Redis instance."
860865
},
861866
"RedisResource": {

0 commit comments

Comments
 (0)