From 382c01d7ae95650b64ba5e6a6413a5d141a5266c Mon Sep 17 00:00:00 2001 From: sayo-o518 <209420449+sayo-o518@users.noreply.github.com> Date: Fri, 8 May 2026 02:00:14 +0000 Subject: [PATCH] Update OpenAPI schema from dotto-typespec --- openapi/external/funch_api/openapi.yaml | 46 +++++++++++++++++++++++ openapi/openapi.yaml | 50 +++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/openapi/external/funch_api/openapi.yaml b/openapi/external/funch_api/openapi.yaml index a45bc6e..8ef1a7b 100644 --- a/openapi/external/funch_api/openapi.yaml +++ b/openapi/external/funch_api/openapi.yaml @@ -33,6 +33,29 @@ paths: - menuItems tags: - MenuItems + post: + operationId: MenuItemsV1_create + parameters: [] + responses: + '201': + description: The request has succeeded and a new resource has been created as a result. + content: + application/json: + schema: + type: object + properties: + menuItem: + $ref: '#/components/schemas/MenuItem' + required: + - menuItem + tags: + - MenuItems + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/MenuItemRequest' components: schemas: Category: @@ -69,6 +92,29 @@ components: type: array items: $ref: '#/components/schemas/Price' + MenuItemRequest: + type: object + required: + - date + - name + - imageUrl + - category + - prices + properties: + date: + type: string + format: date + name: + type: string + imageUrl: + type: string + format: uri + category: + $ref: '#/components/schemas/Category' + prices: + type: array + items: + $ref: '#/components/schemas/Price' Price: type: object required: diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index b0f4c39..77d3715 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -769,6 +769,33 @@ paths: description: Access is unauthorized. tags: - MenuItems + post: + operationId: MenuItemsV1_create + description: メニューを作成する + parameters: [] + responses: + '201': + description: 作成されたメニュー + content: + application/json: + schema: + type: object + properties: + menuItem: + $ref: '#/components/schemas/FunchService.MenuItem' + required: + - menuItem + '401': + description: Access is unauthorized. + tags: + - MenuItems + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/FunchService.MenuItemRequest' + description: 作成するメニューの情報 /v1/notifications: get: operationId: NotificationV1_list @@ -2243,6 +2270,29 @@ components: type: array items: $ref: '#/components/schemas/FunchService.Price' + FunchService.MenuItemRequest: + type: object + required: + - date + - name + - imageUrl + - category + - prices + properties: + date: + type: string + format: date + name: + type: string + imageUrl: + type: string + format: uri + category: + $ref: '#/components/schemas/FunchService.Category' + prices: + type: array + items: + $ref: '#/components/schemas/FunchService.Price' FunchService.Price: type: object required: