From dadc5cd61a1eb2ec0a3b29b12c17fc6ad47ad1d5 Mon Sep 17 00:00:00 2001 From: Alexander Mattoni <5110855+mattoni@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:02:51 -0700 Subject: [PATCH] make existing nullable --- .../schemas/images/origins/dockerHub/DockerHubOrigin.yml | 6 +++++- .../images/origins/dockerRegistry/DockerRegistryOrigin.yml | 6 +++++- .../images/origins/ociRegistry/OciRegistryOrigin.yml | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/components/schemas/images/origins/dockerHub/DockerHubOrigin.yml b/components/schemas/images/origins/dockerHub/DockerHubOrigin.yml index 16e64ca7..3ea63747 100644 --- a/components/schemas/images/origins/dockerHub/DockerHubOrigin.yml +++ b/components/schemas/images/origins/dockerHub/DockerHubOrigin.yml @@ -13,9 +13,13 @@ properties: type: object required: - target + - existing properties: existing: - $ref: ../ExistingSource.yml + type: object + nullable: true + allOf: + - $ref: ../ExistingSource.yml target: type: string description: The DockerHub target string. ex - `mysql:5.7` diff --git a/components/schemas/images/origins/dockerRegistry/DockerRegistryOrigin.yml b/components/schemas/images/origins/dockerRegistry/DockerRegistryOrigin.yml index 069cd4eb..66e1cafe 100644 --- a/components/schemas/images/origins/dockerRegistry/DockerRegistryOrigin.yml +++ b/components/schemas/images/origins/dockerRegistry/DockerRegistryOrigin.yml @@ -14,9 +14,13 @@ properties: required: - target - url + - existing properties: existing: - $ref: ../ExistingSource.yml + type: object + nullable: true + allOf: + - $ref: ../ExistingSource.yml target: type: string description: The image name on the registry. diff --git a/components/schemas/images/origins/ociRegistry/OciRegistryOrigin.yml b/components/schemas/images/origins/ociRegistry/OciRegistryOrigin.yml index 1ca83c51..39cd4843 100644 --- a/components/schemas/images/origins/ociRegistry/OciRegistryOrigin.yml +++ b/components/schemas/images/origins/ociRegistry/OciRegistryOrigin.yml @@ -15,9 +15,13 @@ properties: - target - url - auth + - existing properties: existing: - $ref: ../ExistingSource.yml + type: object + nullable: true + allOf: + - $ref: ../ExistingSource.yml target: type: string description: The image name on the registry.