diff --git a/files/chart/values.schema.json b/files/chart/values.schema.json index 5c38404..21d2e4e 100644 --- a/files/chart/values.schema.json +++ b/files/chart/values.schema.json @@ -1489,15 +1489,7 @@ }, "Quantity": { "additionalProperties": false, - "properties": { - "Format": { - "type": "string" - } - }, - "required": [ - "Format" - ], - "type": "object" + "type": "string" }, "QuobyteVolumeSource": { "additionalProperties": false, diff --git a/hack/schema-generation.go b/hack/schema-generation.go index a0acf81..4b93b05 100644 --- a/hack/schema-generation.go +++ b/hack/schema-generation.go @@ -64,6 +64,12 @@ func updateProperties(data []byte) []byte { rawExt["additionalProperties"] = true m["$defs"].(map[string]interface{})["RawExtension"] = rawExt + quantity := m["$defs"].(map[string]interface{})["Quantity"].(map[string]interface{}) + quantity["type"] = "string" + delete(quantity,"properties") + delete(quantity,"required") + m["$defs"].(map[string]interface{})["Quantity"] = quantity + serviceBindingSpec := m["$defs"].(map[string]interface{})["serviceBindingExt"].(map[string]interface{}) serviceBindingSpec["required"] = []string{"name", "serviceInstanceName", "secretName"} diff --git a/test/files/expectedChart/values.schema.json b/test/files/expectedChart/values.schema.json index 5c38404..21d2e4e 100644 --- a/test/files/expectedChart/values.schema.json +++ b/test/files/expectedChart/values.schema.json @@ -1489,15 +1489,7 @@ }, "Quantity": { "additionalProperties": false, - "properties": { - "Format": { - "type": "string" - } - }, - "required": [ - "Format" - ], - "type": "object" + "type": "string" }, "QuobyteVolumeSource": { "additionalProperties": false,