Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: /formのGETで返す情報を、フォーム全体ではなく最低限の情報のみ返すように修正 #116

Merged
merged 1 commit into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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