From 4c579595ae1c597c94507cdb8ca0a7558914a1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Schr=C3=B6der?= Date: Tue, 4 Mar 2025 20:44:35 +0100 Subject: [PATCH] move GET /localization request object to schemas for better code generation results --- src/openapi/I_VZD_TIM_Provider_Services.yaml | 21 +++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/openapi/I_VZD_TIM_Provider_Services.yaml b/src/openapi/I_VZD_TIM_Provider_Services.yaml index 516ada8e..594ee14c 100644 --- a/src/openapi/I_VZD_TIM_Provider_Services.yaml +++ b/src/openapi/I_VZD_TIM_Provider_Services.yaml @@ -224,15 +224,7 @@ paths: content: application/json: schema: - type: string - enum: [ org, pract, orgPract, none ] - example: org - description: | - Returns in which part of the directory the MXID is located: - - org: Located in the Organization part - - pract: Located in the Practitioner part - - orgPract: Located in the Organization and Practitioner part - - none: Not found in any part + $ref: "#/components/schemas/MxIdLocation" 400: description: Bad Request content: @@ -596,6 +588,17 @@ components: description: Die Version von dem OpenAPI Document (YAML Datei) example: "1.0.0" + MxIdLocation: + type: string + enum: [ org, pract, orgPract, none ] + example: org + description: | + Returns in which part of the directory the MXID is located: + - org: Located in the Organization part + - pract: Located in the Practitioner part + - orgPract: Located in the Organization and Practitioner part + - none: Not found in any part + securitySchemes: OAuth2: type: oauth2