diff --git a/samples/score-full.yaml b/samples/score-full.yaml index e8c202d..5e70b1a 100644 --- a/samples/score-full.yaml +++ b/samples/score-full.yaml @@ -36,6 +36,7 @@ containers: content /my/other/binaryfile: binaryContent: ADBgwpA= + /my/other/file-short: "some content here" volumes: /mnt/something: source: volume-name @@ -43,6 +44,7 @@ containers: readOnly: false /mnt/something-else: source: volume-two + /mnt/something-short: "volume-short" livenessProbe: httpGet: port: 8080 diff --git a/score-v1b1.json b/score-v1b1.json index 9acd544..0b1cb18 100644 --- a/score-v1b1.json +++ b/score-v1b1.json @@ -322,16 +322,23 @@ { "type": "object", "additionalProperties": { - "allOf": [ + "oneOf": [ { - "not": { - "type": "object", - "additionalProperties": true, - "required": ["target"] - } + "allOf": [ + { + "not": { + "type": "object", + "additionalProperties": true, + "required": ["target"] + } + }, + { + "$ref": "#/$defs/containerFile" + } + ] }, { - "$ref": "#/$defs/containerFile" + "type": "string" } ] } @@ -351,16 +358,23 @@ { "type": "object", "additionalProperties": { - "allOf": [ + "oneOf": [ { - "not": { - "type": "object", - "additionalProperties": true, - "required": ["target"] - } + "allOf": [ + { + "not": { + "type": "object", + "additionalProperties": true, + "required": ["target"] + } + }, + { + "$ref": "#/$defs/containerVolume" + } + ] }, { - "$ref": "#/$defs/containerVolume" + "type": "string" } ] }