From 8e1287d1f5c980c965b11d4d89db6cd9428b74c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Youn=C3=A8s=20Adem?= Date: Tue, 19 Mar 2024 13:30:49 +0100 Subject: [PATCH] fix: rems specification --- src/main/openapi/rems.yaml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/src/main/openapi/rems.yaml b/src/main/openapi/rems.yaml index dd10cd6..cd3c7d4 100644 --- a/src/main/openapi/rems.yaml +++ b/src/main/openapi/rems.yaml @@ -88,9 +88,11 @@ paths: type: string - name: application-id in: path + required: true description: Application id schema: - type: string + type: integer + format: int64 responses: '200': description: '' @@ -99,7 +101,7 @@ paths: schema: type: object items: - $ref: '#/components/schemas/ApplicationOverview' + $ref: '#/components/schemas/Application' components: schemas: ApplicationOverview: @@ -765,7 +767,9 @@ components: - attachment - text license/title: - $ref: '#/components/schemas/LocalizedString' + type: object + items: + $ref: '#/components/schemas/LocalizedString' license/id: type: integer format: int64 @@ -786,7 +790,9 @@ components: form/internal-name: type: string form/external-title: - $ref: '#/components/schemas/LocalizedString' + type: object + items: + $ref: '#/components/schemas/LocalizedString' form/fields: type: array items: @@ -797,14 +803,16 @@ components: - field/title - field/visible - field/type - - field/value +# - field/value - field/id - field/optional properties: field/private: type: boolean field/title: - $ref: '#/components/schemas/LocalizedString' + type: object + items: + $ref: '#/components/schemas/LocalizedString' field/visible: type: boolean field/type: @@ -825,11 +833,9 @@ components: - text field/value: type: object - required: - - description properties: description: - oneOf: + x-oneOf: - type: string - type: array items: @@ -864,4 +870,6 @@ components: type: integer format: int64 event/actor-attributes: - $ref: '#/components/schemas/UserWithAttributes' + type: object + items: + $ref: '#/components/schemas/UserWithAttributes'