From 8b45a94d4dd10648f8c7a91ce741e60906d23f77 Mon Sep 17 00:00:00 2001 From: Michelle Weidling Date: Mon, 11 Apr 2022 10:35:22 +0200 Subject: [PATCH 1/2] fix: usage of Idref Object --- content/page/specs.md | 3 +-- openapi_3.0.2_specification.yml | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/content/page/specs.md b/content/page/specs.md index 19ea833..1a2836f 100644 --- a/content/page/specs.md +++ b/content/page/specs.md @@ -29,7 +29,6 @@ The current version: 0.4.0. |----|----|----| | 1 | exactly one | yes | | ? | zero or one | no | -| * | zero or more | no | ### Data Types @@ -165,7 +164,7 @@ versions. | role | 1 | [string] | the role of a personal entity in relation to the parent object, MUST be `collector` in case of collections | | name | 1 | string | the principal name of the person | | id | ? | string | internal identifier | -| idref | * | [Idref Object](#idref-object) | authority files related to the person | +| idref | ? | \[[Idref Object](#idref-object)\] | authority files related to the person | #### Metadata Object diff --git a/openapi_3.0.2_specification.yml b/openapi_3.0.2_specification.yml index c128db6..3ab115c 100644 --- a/openapi_3.0.2_specification.yml +++ b/openapi_3.0.2_specification.yml @@ -295,17 +295,18 @@ components: id: type: string idref: - type: object - required: - - type - - id - properties: - base: - $ref: '#/components/schemas/URL' - type: - type: string - id: - type: string + type: array + items: + required: + - type + - id + properties: + base: + $ref: '#/components/schemas/URL' + type: + type: string + id: + type: string SequenceObject: type: object -- GitLab From f3f153435829aec4748a6d7e88fe9c264a39c6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20G=C3=B6bel?= Date: Mon, 11 Apr 2022 12:45:45 +0200 Subject: [PATCH 2/2] fix: usage of Idref (json schema) --- schema/actor.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/schema/actor.json b/schema/actor.json index 8e88d1c..d17983a 100644 --- a/schema/actor.json +++ b/schema/actor.json @@ -22,7 +22,12 @@ }, "idref": { "description": "authority files related to the person", - "$ref": "idref.json" + "type": "array", + "items": { + "$ref": "idref.json", + "minItems": 1, + "uniqueItems": true + } } }, "required": [ "role", "name" ], -- GitLab