From 47ce88d6e71ca6689512d9b2ed729a728a236498 Mon Sep 17 00:00:00 2001 From: Panagiotis Vretanos Date: Mon, 4 Mar 2024 03:13:47 -0500 Subject: [PATCH] Allow metadata to be referenced or encoded inline. --- openapi/schemas/processes-core/metadata.yaml | 28 ++++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/openapi/schemas/processes-core/metadata.yaml b/openapi/schemas/processes-core/metadata.yaml index e4d31c2a..e99695cf 100644 --- a/openapi/schemas/processes-core/metadata.yaml +++ b/openapi/schemas/processes-core/metadata.yaml @@ -1,8 +1,20 @@ -type: object -properties: - title: - type: string - role: - type: string - href: - type: string +oneOf: + - allOf: + - $ref: ../common-core/link.yaml + - type: object + properties: + role: + type: string + - type: object + properties: + role: + type: string + title: + type: string + lang: + type: string + value: + oneOf: + - type: string + - type: object +