From f7feb513e0a4f995fbd6271f1bbab580057805a1 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Fri, 4 Oct 2019 00:11:59 +0200 Subject: [PATCH] OpenApi: move comment path parameter to generic type --- src/main/resources/openApi.yaml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/main/resources/openApi.yaml b/src/main/resources/openApi.yaml index da637b2..e3de9c4 100644 --- a/src/main/resources/openApi.yaml +++ b/src/main/resources/openApi.yaml @@ -283,14 +283,7 @@ paths: $ref: '#/components/schemas/ConstitutionResponse' /comments/{comment}: parameters: - - name: comment - in: path - description: The ID of comment - example: 701dc504-db49-7e3a-2c0a-32542507ea57 - required: true - schema: - type: string - format: uuid + - $ref: '#/components/parameters/comment' get: summary: Get Comment by Comment ID tags: @@ -323,14 +316,7 @@ paths: /comments/{comment}/children: parameters: - - name: comment - in: path - description: The ID of comment - example: 701dc504-db49-7e3a-2c0a-32542507ea57 - required: true - schema: - type: string - format: uuid + - $ref: '#/components/parameters/comment' get: summary: Get Comment children by Comment ID tags: @@ -599,6 +585,16 @@ components: type: string format: uuid + comment: + name: comment + in: path + description: The ID of comment + example: 701dc504-db49-7e3a-2c0a-32542507ea57 + required: true + schema: + type: string + format: uuid + securitySchemes: JWTAuth: type: http