From 176ea02dcadca2905255f46113df3b0f777d20ee Mon Sep 17 00:00:00 2001 From: Arnaud Lauret Date: Tue, 2 Aug 2022 11:38:25 +0200 Subject: [PATCH] v3.1 license schema modified to describe url and identifier as mutually exclusive. Fixes #2975 --- schemas/v3.1/schema.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/schemas/v3.1/schema.yaml b/schemas/v3.1/schema.yaml index 64fa7522a1..58e054b501 100644 --- a/schemas/v3.1/schema.yaml +++ b/schemas/v3.1/schema.yaml @@ -105,11 +105,11 @@ $defs: format: uri required: - name - oneOf: - - required: - - identifier - - required: - - url + dependentSchemas: + identifier: + not: + required: + - url $ref: '#/$defs/specification-extensions' unevaluatedProperties: false