Skip to content

Commit

Permalink
fix: /formのGETで返す情報を、フォーム全体ではなく最低限の情報のみ返すように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Oct 24, 2023
1 parent 40ba42d commit ce65a02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schema/paths/forms/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ get:
uniqueItems: true
minItems: 1
items:
$ref: "../../types/forms/definitions.yml#/definitions/form"
$ref: "../../types/forms/definitions.yml#/definitions/simple_form"
"400":
$ref: "../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
Expand Down
14 changes: 14 additions & 0 deletions schema/types/forms/definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ definitions:
required:
- id
- title
simple_form:
description: フォームの最低限必要な情報のみを集めたもの。
type: object
properties:
id:
readOnly: true
allOf:
- $ref: "./components.yml#/components/schemas/id"
title:
$ref: "./components.yml#/components/schemas/title"
description:
$ref: "./components.yml#/components/schemas/description"
response_period:
$ref: "./components.yml#/components/schemas/response_period"
questions:
description: 質問の配列
type: object
Expand Down

0 comments on commit ce65a02

Please sign in to comment.