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

フォームに公開設定を追加 #118

Merged
merged 1 commit into from
Oct 31, 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
1 change: 1 addition & 0 deletions schema/paths/forms/[formId]/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ patch:
- $ref: "../../../types/forms/parameters.yml#/parameters/end_at"
- $ref: "../../../types/forms/parameters.yml#/parameters/webhook_url"
- $ref: "../../../types/forms/parameters.yml#/parameters/default_title"
- $ref: "../../../types/forms/parameters.yml#/parameters/visibility"
responses:
"200":
description: 指定されたFormの更新に成功
Expand Down
14 changes: 14 additions & 0 deletions schema/types/forms/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ components:
これが設定されていないとタイトルは「未設定」となります。
type: string
example: 未設定
visibility:
description: |
フォームの公開設定。

| ENUM | 説明 |
| -------- | ------------|
| PUBLIC | 全体公開 |
| PRIVATE | 非公開 |
type: string
enum:
- PUBLIC
- PRIVATE
settings:
description: フォームの設定
type: object
Expand All @@ -51,6 +63,8 @@ components:
$ref: "#/components/schemas/webhook_url"
default_title:
$ref: "#/components/schemas/default_title"
visibility:
$ref: "#/components/schemas/visibility"
created_at:
description: フォームの作成日時
type: string
Expand Down
7 changes: 7 additions & 0 deletions schema/types/forms/parameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ parameters:
required: false
schema:
$ref: "./components.yml#/components/schemas/default_title"
visibility:
name: visibility
in: query
description: フォームの公開設定
required: false
schema:
$ref: "./components.yml#/components/schemas/visibility"
form_label_target:
name: target
in: query
Expand Down