Skip to content

Commit

Permalink
Merge pull request #161 from GiganticMinecraft/feat/answer_visibility
Browse files Browse the repository at this point in the history
フォームの設定項目に回答を一般公開するかの項目を追加
  • Loading branch information
rito528 authored Aug 25, 2024
2 parents 1643d33 + e468fe1 commit f646842
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/endpoints/forms.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ namespace Forms {
default_title?: string;

visibility?: Visibility;
answer_visibility?: Visibility;
},
): {
@statusCode statusCode: 200;
Expand Down
9 changes: 9 additions & 0 deletions src/models/form.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,16 @@ model Form {
webhook_url: url;

default_title: string;

/**
* フォーム自体を公開するかどうか
*/
visibility: Visibility;

/**
* 回答を公開するかどうか
*/
answer_visibility: Visibility;
};
metadata: {
created_at: utcDateTime;
Expand Down

0 comments on commit f646842

Please sign in to comment.