From 83585efc45e6ac6d8249bb27ef8c0265a848bb3a Mon Sep 17 00:00:00 2001
From: OKAMOTO Shigehiro
申請項目の読み込みに失敗しました
; } if (items.length == 0) { return申請の項目が一件もありません
; } - /* return items.map((item) => { switch (item.type) { case "int": return (項目の読み込みに失敗しました
; } }); - */ }; diff --git a/src/app/forms/[form_id]/page.tsx b/src/app/forms/[form_id]/page.tsx index e9d23248..29a922bb 100644 --- a/src/app/forms/[form_id]/page.tsx +++ b/src/app/forms/[form_id]/page.tsx @@ -1,7 +1,7 @@ "use client"; import useSWR from "swr"; -import { fetcherWithToken } from "@/lib/swr"; +import { useForm } from "react-hook-form"; import { assignType } from "@/lib/openapi"; import { css } from "@styled-system/css"; @@ -9,25 +9,36 @@ import { FormItems } from "./FormItems"; import dayjs from "dayjs"; import { getTimeLeftText, getSubmitStatusFromDate } from "@/lib/formHelpers"; import { type SubmitStatus, SubmitStatusBadge } from "@/components/SubmitStatus"; +import { Loading } from "@/components/Loading"; export const runtime = "edge"; const FormDetailPage = ({ params }: { params: { form_id: string } }) => { const id = params.form_id; - const { data: projectRes } = useSWR("/projects/me", fetcherWithToken); - const project = projectRes ? assignType("/projects/me", projectRes) : undefined; + const { data: projectRes, error: projectError, isLoading: projectLoading } = useSWR("/projects/me"); + const project = assignType("/projects/me", projectRes); const projectId = project?.id; - const { data: formRes } = useSWR(`/forms/${id}/`, fetcherWithToken); - const form = formRes ? assignType("/forms/{form_id}", formRes) : undefined; + const { data: formRes, error: formError, isLoading: formLoading } = useSWR(`/forms/${id}`); + const form = assignType("/forms/{form_id}", formRes); - const { data: answersRes } = useSWR(`/form-answers?project_id=${projectId}`, fetcherWithToken); - const _answers = answersRes ? assignType("/form-answers", answersRes) : undefined; + const { + data: answersRes, + error: answersError, + isLoading: answersLoading, + } = useSWR(`/form-answers?project_id=${projectId}`); + const _answers = assignType("/form-answers", answersRes); const status: SubmitStatus = getSubmitStatusFromDate(form?.ends_at, form?.answered_at); + const { + register, + handleSubmit, + formState: { errors }, + } = useForm(); + return ( <>申請の取得中にエラーが発生しました( - {(projectRes && !projectRes?.ok ? `Project: ${projectRes?.statusCode} ` : "") + - (formRes && !formRes?.ok ? `Forms: ${formRes?.statusCode} ` : "") + - (answersRes && !answersRes?.ok ? `Answers: ${answersRes?.statusCode}` : "")} + {(projectError ? `Project: ${projectError.message} ` : "") + + (formError ? `Forms: ${formError.message} ` : "") + + (answersError ? `Answers: ${answersError.message}` : "")} )
- ) : form ? ( + ) : ( <>@@ -64,18 +77,15 @@ const FormDetailPage = ({ params }: { params: { form_id: string } }) => { {form.description}
> - ) : ( -申請内容を読み込み中です……
)}+ {description} +
+ {error && {error}} +- {description} -
- {error && {error}} -このお知らせは存在しません。
; default: - return招待の読み込み中に不明なエラーが発生しました。
; + returnお知らせの読み込み中に不明なエラーが発生しました。
; } } From 9b9d12e22ab2f86862b778b19a5cb03749c31140 Mon Sep 17 00:00:00 2001 From: s7tya <53410646+s7tya@users.noreply.github.com> Date: Fri, 12 Apr 2024 13:29:40 +0900 Subject: [PATCH 09/61] =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E7=BE=A9=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/valibot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/valibot.ts b/src/lib/valibot.ts index 52f1f4de..e8179cec 100644 --- a/src/lib/valibot.ts +++ b/src/lib/valibot.ts @@ -59,7 +59,7 @@ export const projectCategories = [ "stage_1a", "stage_university_hall", "stage_united", -]; +] as const; export type ProjectCategory = (typeof projectCategories)[number]; const projectCategorySchema = union( @@ -67,7 +67,7 @@ const projectCategorySchema = union( "いずれかの企画区分を選択してください", ); -export const projectAttributes = ["academic", "art", "official", "inside", "outside"]; +export const projectAttributes = ["academic", "art", "official", "inside", "outside"] as const; export type ProjectAttribute = (typeof projectAttributes)[number]; export const projectPlaces = ["outside", "inside", "stage"]; From 7adc8d23f44c26b83b1e286a5f7330bb1b06741d Mon Sep 17 00:00:00 2001 From: s7tya <53410646+s7tya@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:38:34 +0900 Subject: [PATCH 10/61] =?UTF-8?q?=E7=94=B3=E8=AB=8B=E3=82=92=E4=BD=9C?= =?UTF-8?q?=E6=88=90=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panda.config.ts | 2 +- .../committee/forms/new/FormFieldEditor.tsx | 15 ++ src/app/committee/forms/new/page.tsx | 161 ++++++++++++++++-- src/lib/textUtils.ts | 14 +- 4 files changed, 167 insertions(+), 25 deletions(-) create mode 100644 src/app/committee/forms/new/FormFieldEditor.tsx diff --git a/panda.config.ts b/panda.config.ts index 7eb747a0..49a3bdeb 100644 --- a/panda.config.ts +++ b/panda.config.ts @@ -24,7 +24,7 @@ export default defineConfig({ }, tsukuba: { purple: { value: "#60C" }, - } + }, }, }, }, diff --git a/src/app/committee/forms/new/FormFieldEditor.tsx b/src/app/committee/forms/new/FormFieldEditor.tsx new file mode 100644 index 00000000..8d1b55ec --- /dev/null +++ b/src/app/committee/forms/new/FormFieldEditor.tsx @@ -0,0 +1,15 @@ +import { FC } from "react"; +import { type FormField } from "./page"; + +export const FormFieldEditor: FC<{ field: FormField }> = ({ field }) => { + switch (field.type) { + case "string": + return ; + case "int": + return ; + case "choose_one": + return ; + case "choose_many": + return ; + } +}; diff --git a/src/app/committee/forms/new/page.tsx b/src/app/committee/forms/new/page.tsx index ac838b4b..7ca96a92 100644 --- a/src/app/committee/forms/new/page.tsx +++ b/src/app/committee/forms/new/page.tsx @@ -1,12 +1,15 @@ "use client"; +import { client } from "@/lib/openapi"; import { getProjectAttributeText, getProjectCategoryText } from "@/lib/textUtils"; -import { projectAttributes, projectCategories } from "@/lib/valibot"; +import { ProjectAttribute, ProjectCategory, projectAttributes, projectCategories } from "@/lib/valibot"; import { css } from "@styled-system/css"; import { stack, visuallyHidden } from "@styled-system/patterns"; +import dayjs from "dayjs"; import { NextPage } from "next"; import { FC } from "react"; -import { useForm } from "react-hook-form"; +import { Controller, useFieldArray, useForm } from "react-hook-form"; +import { FormFieldEditor } from "./FormFieldEditor"; const sectionTitleStyle = css({ fontSize: "xl", @@ -50,8 +53,73 @@ const Divider: FC = () => { return ; }; +export type FormField = { + name: string; + description: string; + required: boolean; +} & ( + | { + type: "int"; + min: number; + max: number; + } + | { + type: "string"; + minLength: number; + maxLength: number; + allowNewline: boolean; + } + | { + type: "choose_one"; + options: string[]; + } + | { + type: "choose_many"; + minSelection: number; + maxSelection: number; + options: string[]; + } + | { + type: "file"; + extensions: string[]; + limit: number; + } +); + +type CreateFormInput = { + starts_at: string; + ends_at: string; + title: string; + description: string; + categories: ProjectCategory[]; + attributes: ProjectAttribute[]; + attachments: string[]; + items: FormField[]; +}; + const CreateFormPage: NextPage = () => { - const { register } = useForm(); + const { register, control, handleSubmit } = useForm選択しない場合全ての企画が対象になります
+受付開始日時を選択しなかった場合現在時刻が入力されます
テキスト項目
+ + + + + + + + + + + + + + +テキスト項目
- - + return ( +テキスト項目
+ + - - +このお知らせは存在しません。
; default: returnお知らせの読み込み中に不明なエラーが発生しました。
; From 798a3ae604e51776dbc3d8da6f7065f1eb181275 Mon Sep 17 00:00:00 2001 From: Ryoga-exeこのお知らせは存在しません。
; default: returnお知らせの読み込み中に不明なエラーが発生しました。
; From 307ed86a971dfe64c6356ecdc8e03276b12efde6 Mon Sep 17 00:00:00 2001 From: s7tya <53410646+s7tya@users.noreply.github.com> Date: Sat, 13 Apr 2024 02:16:19 +0900 Subject: [PATCH 18/61] fix --- src/app/committee/news/[news_id]/edit/EditNewsForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/committee/news/[news_id]/edit/EditNewsForm.tsx b/src/app/committee/news/[news_id]/edit/EditNewsForm.tsx index afe8a00a..86ccd0dd 100644 --- a/src/app/committee/news/[news_id]/edit/EditNewsForm.tsx +++ b/src/app/committee/news/[news_id]/edit/EditNewsForm.tsx @@ -65,7 +65,7 @@ export const EditNewsForm: FC<{ title: data.title, body: data.body, categories: categories as components["schemas"]["ProjectCategory"][], - attributes: projectAttributes as components["schemas"]["ProjectAttribute"][], + attributes: projectAttributes as unknown as components["schemas"]["ProjectAttribute"][], attachments: [], }, }) From 6b1584779ebf2a6891c40c14a0e8fc0e16cdea59 Mon Sep 17 00:00:00 2001 From: s7tya <53410646+s7tya@users.noreply.github.com> Date: Sat, 13 Apr 2024 03:00:11 +0900 Subject: [PATCH 19/61] fix openapi --- schema.yml | 838 ++++++++++++++++++++++++------------------------ src/schema.d.ts | 12 +- 2 files changed, 422 insertions(+), 428 deletions(-) diff --git a/schema.yml b/schema.yml index 4b13e42c..53a21774 100644 --- a/schema.yml +++ b/schema.yml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: Sohosai Online System - version: '1.0' + version: "1.0" servers: - url: http://localhost:3000 security: @@ -28,7 +28,7 @@ paths: get: summary: サーバーの状態を確認する responses: - '200': + "200": description: OK /projects: get: @@ -37,32 +37,32 @@ paths: - projects - committee responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/ProjectSummary' - '401': + $ref: "#/components/schemas/ProjectSummary" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: 企画の作成 tags: @@ -72,86 +72,86 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateProject' + $ref: "#/components/schemas/CreateProject" responses: - '201': + "201": description: Created content: application/json: schema: - $ref: '#/components/schemas/CreatedProject' - '400': + $ref: "#/components/schemas/CreatedProject" + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /projects/export: get: summary: 企画一覧のエクスポート tags: - committee responses: - '200': + "200": description: OK content: text/csv: schema: type: string - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /projects/me: get: summary: 自分が企画責任者・副企画責任者になっている企画の取得 tags: - projects responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/Project' - '401': + $ref: "#/components/schemas/Project" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /projects/{project_id}: get: summary: 特定のIDの企画の取得 @@ -165,36 +165,36 @@ paths: type: string required: true responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/Project' - '401': + $ref: "#/components/schemas/Project" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: summary: 特定のIDの企画の更新 tags: @@ -211,46 +211,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateProject' + $ref: "#/components/schemas/UpdateProject" responses: - '200': + "200": description: OK - '400': + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: summary: 特定のIDの企画の削除 tags: @@ -263,32 +263,32 @@ paths: schema: type: string responses: - '200': + "200": description: OK - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /users: get: summary: ユーザー一覧の取得 @@ -296,32 +296,32 @@ paths: - users - committee responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserSummary' - '401': + $ref: "#/components/schemas/UserSummary" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: ユーザーの作成 tags: @@ -331,80 +331,80 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateUser' + $ref: "#/components/schemas/CreateUser" responses: - '201': + "201": description: Created content: application/json: schema: - $ref: '#/components/schemas/CreatedUser' - '400': + $ref: "#/components/schemas/CreatedUser" + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /users/export: get: summary: ユーザー一覧のエクスポート tags: - committee responses: - '200': + "200": description: OK content: text/csv: schema: type: string - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /users/me: get: summary: 自分のユーザーの取得 tags: - users responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/User' - '401': + $ref: "#/components/schemas/User" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /users/{user_id}: get: summary: 特定のIDのユーザーの取得 @@ -418,36 +418,36 @@ paths: type: string required: true responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/User' - '401': + $ref: "#/components/schemas/User" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: summary: 特定のIDのユーザーの更新 tags: @@ -464,46 +464,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateUser' + $ref: "#/components/schemas/UpdateUser" responses: - '200': + "200": description: OK - '400': + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: summary: 特定のIDのユーザーの削除 tags: @@ -516,36 +516,36 @@ paths: schema: type: string responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /news: get: summary: ニュース一覧の取得 @@ -553,26 +553,26 @@ paths: - news - committee responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/NewsSummary' - '401': + $ref: "#/components/schemas/NewsSummary" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: ニュースの作成 tags: @@ -583,44 +583,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateNews' + $ref: "#/components/schemas/CreateNews" responses: - '201': + "201": description: Created content: application/json: schema: - $ref: '#/components/schemas/CreatedNews' - '400': + $ref: "#/components/schemas/CreatedNews" + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /news/{news_id}: get: summary: 特定のIDのニュースの取得 @@ -633,30 +633,30 @@ paths: schema: type: string responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/News' - '401': + $ref: "#/components/schemas/News" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: summary: 特定のIDのニュースの更新 tags: @@ -673,46 +673,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateNews' + $ref: "#/components/schemas/UpdateNews" responses: - '200': + "200": description: OK - '400': + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: summary: 特定のIDのニュースの削除 tags: @@ -725,32 +725,32 @@ paths: schema: type: string responses: - '200': + "200": description: OK - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /files: get: summary: ニュースの添付ファイル一覧の取得 @@ -758,32 +758,32 @@ paths: - files - committee responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/FileInfo' - '401': + $ref: "#/components/schemas/FileInfo" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: ファイルの作成 tags: @@ -802,44 +802,44 @@ paths: content: multipart/form-data: schema: - $ref: '#/components/schemas/CreateFile' + $ref: "#/components/schemas/CreateFile" responses: - '201': + "201": description: Created content: application/json: schema: - $ref: '#/components/schemas/CreatedFile' - '400': + $ref: "#/components/schemas/CreatedFile" + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /files/{file_id}: get: summary: 特定のIDのファイルの取得 @@ -852,30 +852,30 @@ paths: schema: type: string responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/File' - '401': + $ref: "#/components/schemas/File" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: summary: 特定のIDのファイルの削除 tags: @@ -888,26 +888,26 @@ paths: schema: type: string responses: - '200': + "200": description: OK - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /invitations: get: summary: 招待一覧の取得 @@ -915,32 +915,32 @@ paths: - invitations - committee responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/Invitation' - '401': + $ref: "#/components/schemas/Invitation" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: 招待の作成 tags: @@ -951,44 +951,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateInvitation' + $ref: "#/components/schemas/CreateInvitation" responses: - '201': + "201": description: Created content: application/json: schema: - $ref: '#/components/schemas/CreatedInvitation' - '400': + $ref: "#/components/schemas/CreatedInvitation" + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /invitations/{invitation_id}: get: summary: 特定のIDの招待の取得 @@ -1002,36 +1002,36 @@ paths: schema: type: string responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/Invitation' - '401': + $ref: "#/components/schemas/Invitation" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: 特定のIDの招待の受諾 tags: @@ -1043,32 +1043,32 @@ paths: schema: type: string responses: - '200': + "200": description: OK - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: summary: 招待の削除 tags: @@ -1081,32 +1081,32 @@ paths: schema: type: string responses: - '200': + "200": description: OK - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /forms: get: summary: 申請一覧の取得 @@ -1119,38 +1119,38 @@ paths: type: string required: false responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/FormSummary' - '401': + $ref: "#/components/schemas/FormSummary" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: 申請の作成 tags: @@ -1161,44 +1161,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateForm' + $ref: "#/components/schemas/CreateForm" responses: - '201': + "201": description: Created content: application/json: schema: - $ref: '#/components/schemas/CreatedForm' - '400': + $ref: "#/components/schemas/CreatedForm" + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /forms/{form_id}: get: summary: 特定のIDの申請を取得 @@ -1211,30 +1211,30 @@ paths: type: string required: true responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/Form' - '401': + $ref: "#/components/schemas/Form" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: summary: 特定のIDの申請を更新 tags: @@ -1251,46 +1251,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateForm' + $ref: "#/components/schemas/UpdateForm" responses: - '200': + "200": description: OK - '400': + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: summary: 特定のIDの申請を削除 tags: @@ -1303,32 +1303,32 @@ paths: type: string required: true responses: - '200': + "200": description: OK - '401': + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /form-answers: get: summary: 申請の回答一覧を取得 @@ -1346,38 +1346,38 @@ paths: type: string required: false responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/FormAnswerSummary' - '401': + $ref: "#/components/schemas/FormAnswerSummary" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: summary: 申請の回答を作成 tags: @@ -1387,50 +1387,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateFormAnswer' + $ref: "#/components/schemas/CreateFormAnswer" responses: - '201': + "201": description: Created content: application/json: schema: - $ref: '#/components/schemas/CreatedFormAnswer' - '400': + $ref: "#/components/schemas/CreatedFormAnswer" + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /form-answers/{form_answer_id}: get: summary: 申請の回答を取得 @@ -1443,38 +1443,38 @@ paths: type: string required: true responses: - '200': + "200": description: OK content: application/json: schema: type: array items: - $ref: '#/components/schemas/FormAnswer' - '401': + $ref: "#/components/schemas/FormAnswer" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: summary: 申請の回答を更新 tags: @@ -1490,70 +1490,70 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateFormAnswer' + $ref: "#/components/schemas/UpdateFormAnswer" responses: - '200': + "200": description: OK - '400': + "400": description: Bad Request content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': + $ref: "#/components/schemas/Error" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: Forbidden content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Not Found content: application/json: schema: - $ref: '#/components/schemas/Error' - '422': + $ref: "#/components/schemas/Error" + "422": description: Unprocessable Entity content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /project-application-period: get: summary: 企画募集期間を取得する tags: - projects responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/ProjectApplicationPeriod' - '401': + $ref: "#/components/schemas/ProjectApplicationPeriod" + "401": description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': + $ref: "#/components/schemas/Error" + "500": description: Internal Server Error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" components: securitySchemes: Bearer: @@ -1593,11 +1593,11 @@ components: type: string example: そぽたん焼き category: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" owner_id: type: string format: uuid @@ -1638,11 +1638,11 @@ components: type: string example: そぽたんあいこうかい category: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" required: - title - kana_title @@ -1680,11 +1680,11 @@ components: type: string example: そぽたんあいこうかい category: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" owner_id: type: string format: uuid @@ -1745,12 +1745,12 @@ components: type: string example: そぽたんあいこうかい category: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" example: foods_with_kitchen attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" remarks: type: string nullable: true @@ -1779,7 +1779,7 @@ components: type: string format: email role: - $ref: '#/components/schemas/UserRole' + $ref: "#/components/schemas/UserRole" required: - id - name @@ -1828,7 +1828,7 @@ components: phone_number: type: string role: - $ref: '#/components/schemas/UserRole' + $ref: "#/components/schemas/UserRole" owned_project_id: type: string nullable: true @@ -1867,7 +1867,7 @@ components: phone_number: type: string role: - $ref: '#/components/schemas/UserRole' + $ref: "#/components/schemas/UserRole" required: - name - kana_name @@ -1885,11 +1885,11 @@ components: categories: type: array items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" updated_at: type: string format: date-time @@ -1914,11 +1914,11 @@ components: categories: type: array items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" required: - title - body @@ -1951,11 +1951,11 @@ components: categories: type: array items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" created_at: type: string format: date-time @@ -1990,11 +1990,11 @@ components: categories: type: array items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" required: - title - body @@ -2148,21 +2148,21 @@ components: starts_at: type: string format: date-time - example: '2024-03-16T09:00:00Z' + example: "2024-03-16T09:00:00Z" ends_at: type: string format: date-time - example: '2024-03-20T18:00:00Z' + example: "2024-03-20T18:00:00Z" categories: type: array description: 対象となる企画区分 items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array description: 対象となる企画属性 items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" answer_id: type: string format: uuid @@ -2174,7 +2174,7 @@ components: updated_at: type: string format: date-time - example: '2024-03-15T14:45:00Z' + example: "2024-03-15T14:45:00Z" required: - id - title @@ -2199,10 +2199,11 @@ components: type: string description: type: string + nullable: true required: type: boolean type: - $ref: '#/components/schemas/FormItemType' + $ref: "#/components/schemas/FormItemType" min: type: integer nullable: true @@ -2241,7 +2242,6 @@ components: nullable: true required: - name - - description - required - type CreateForm: @@ -2256,23 +2256,23 @@ components: starts_at: type: string format: date-time - example: '2024-03-16T09:00:00Z' + example: "2024-03-16T09:00:00Z" ends_at: type: string format: date-time - example: '2024-03-20T18:00:00Z' + example: "2024-03-20T18:00:00Z" categories: type: array items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" items: type: array items: - $ref: '#/components/schemas/NewFormItem' + $ref: "#/components/schemas/NewFormItem" attachments: type: array items: @@ -2308,7 +2308,7 @@ components: required: type: boolean type: - $ref: '#/components/schemas/FormItemType' + $ref: "#/components/schemas/FormItemType" min: type: integer nullable: true @@ -2412,23 +2412,23 @@ components: starts_at: type: string format: date-time - example: '2024-03-16T09:00:00Z' + example: "2024-03-16T09:00:00Z" ends_at: type: string format: date-time - example: '2024-03-20T18:00:00Z' + example: "2024-03-20T18:00:00Z" categories: type: array items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" items: type: array items: - $ref: '#/components/schemas/FormItem' + $ref: "#/components/schemas/FormItem" attachments: type: array items: @@ -2445,11 +2445,11 @@ components: created_at: type: string format: date-time - example: '2024-03-15T10:30:00Z' + example: "2024-03-15T10:30:00Z" updated_at: type: string format: date-time - example: '2024-03-15T14:45:00Z' + example: "2024-03-15T14:45:00Z" deleted_at: type: string format: date-time @@ -2479,23 +2479,23 @@ components: starts_at: type: string format: date-time - example: '2024-03-16T09:00:00Z' + example: "2024-03-16T09:00:00Z" ends_at: type: string format: date-time - example: '2024-03-20T18:00:00Z' + example: "2024-03-20T18:00:00Z" categories: type: array items: - $ref: '#/components/schemas/ProjectCategory' + $ref: "#/components/schemas/ProjectCategory" attributes: type: array items: - $ref: '#/components/schemas/ProjectAttribute' + $ref: "#/components/schemas/ProjectAttribute" items: type: array items: - $ref: '#/components/schemas/NewFormItem' + $ref: "#/components/schemas/NewFormItem" attachments: type: array items: @@ -2543,7 +2543,7 @@ components: type: string format: uuid type: - $ref: '#/components/schemas/FormItemType' + $ref: "#/components/schemas/FormItemType" value: {} required: - item_id @@ -2556,7 +2556,7 @@ components: type: string format: uuid items: - $ref: '#/components/schemas/FormAnswerItem' + $ref: "#/components/schemas/FormAnswerItem" required: - form_id - items @@ -2585,7 +2585,7 @@ components: form_title: type: string items: - $ref: '#/components/schemas/FormAnswerItem' + $ref: "#/components/schemas/FormAnswerItem" created_at: type: string format: date-time @@ -2609,7 +2609,7 @@ components: type: object properties: items: - $ref: '#/components/schemas/FormAnswerItem' + $ref: "#/components/schemas/FormAnswerItem" required: - items ProjectApplicationPeriod: diff --git a/src/schema.d.ts b/src/schema.d.ts index cb849314..7213ea95 100644 --- a/src/schema.d.ts +++ b/src/schema.d.ts @@ -3,6 +3,7 @@ * Do not make direct changes to the file. */ + export interface paths { "/health": { /** サーバーの状態を確認する */ @@ -1509,14 +1510,7 @@ export type webhooks = Record{getFieldTypeText(field.type)}項目
+ +テキスト項目
- - +{getFieldTypeText(field.type)}項目
++ {getFieldTypeText(field.type)}項目 +