@@ -473,7 +473,7 @@ components:
473
473
description : |
474
474
アンケートの結果を, 運営は見られる ("admins"), 回答済みの人は見られる ("respondents") 誰でも見られる ("anyone")
475
475
476
- NewQuestionnaire :
476
+ QuestionnaireBase :
477
477
allOf :
478
478
- $ref : " #/components/schemas/QuestionnaireTitle"
479
479
- $ref : " #/components/schemas/QuestionnaireDescription"
@@ -483,6 +483,9 @@ components:
483
483
- $ref : " #/components/schemas/QuestionnaireIsAllowingMultipleResponses"
484
484
- $ref : " #/components/schemas/QuestionnaireIsPublished"
485
485
- $ref : " #/components/schemas/QuestionnaireTargetsAndAdmins"
486
+ NewQuestionnaire :
487
+ allOf :
488
+ - $ref : " #/components/schemas/QuestionnaireBase"
486
489
- properties :
487
490
questions :
488
491
type : array
@@ -493,14 +496,21 @@ components:
493
496
QuestionnaireDetail :
494
497
allOf :
495
498
- $ref : " #/components/schemas/QuestionnaireID"
496
- - $ref : " #/components/schemas/NewQuestionnaire "
499
+ - $ref : " #/components/schemas/QuestionnaireBase "
497
500
- $ref : " #/components/schemas/QuestionnaireCreatedAt"
498
501
- $ref : " #/components/schemas/QuestionnaireModifiedAt"
499
502
- properties :
503
+ questions :
504
+ type : array
505
+ items :
506
+ $ref : " #/components/schemas/Question"
500
507
respondents :
501
508
$ref : " #/components/schemas/Users"
502
509
description : |
503
510
回答者の一覧。匿名回答の場合はnull。
511
+ required :
512
+ - questions
513
+ - respondents
504
514
QuestionnaireSummary : # ResponseCountとRespondentCountを入れてもいいかも
505
515
allOf :
506
516
- $ref : " #/components/schemas/QuestionnaireID"
@@ -692,10 +702,6 @@ components:
692
702
required :
693
703
- question_id
694
704
- created_at
695
- Questions :
696
- type : array
697
- items :
698
- $ref : " #/components/schemas/Question"
699
705
QuestionBase :
700
706
type : object
701
707
properties :
0 commit comments