Skip to content

Commit

Permalink
Merge pull request #1267 from traPtitech/refactor/make-nest-component…
Browse files Browse the repository at this point in the history
…-to-another-component

objectがネストされている場合に子供を別コンポーネントへ
  • Loading branch information
kaitoyama committed Sep 3, 2024
2 parents 779ab5c + 4d2e7da commit af2b826
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -883,19 +883,22 @@ components:
type: array
items:
$ref: "#/components/schemas/ResponseWithQuestionnaireInfoItem"
QuestionnaireInfo:
type: object
allOf:
- $ref: "#/components/schemas/QuestionnaireTitle"
- $ref: "#/components/schemas/QuestionnaireResponseDueDateTime"
- $ref: "#/components/schemas/QuestionnaireCreatedAt"
- $ref: "#/components/schemas/QuestionnaireModifiedAt"
- $ref: "#/components/schemas/QuestionnaireIsTargetingMe"
ResponseWithQuestionnaireInfoItem:
type: object
allOf:
- $ref: "#/components/schemas/Response"
- type: object
properties:
questionnaire_info:
allOf:
- $ref: "#/components/schemas/QuestionnaireTitle"
- $ref: "#/components/schemas/QuestionnaireResponseDueDateTime"
- $ref: "#/components/schemas/QuestionnaireCreatedAt"
- $ref: "#/components/schemas/QuestionnaireModifiedAt"
- $ref: "#/components/schemas/QuestionnaireIsTargetingMe"
$ref: "#/components/schemas/QuestionnaireInfo"
ResponseBody:
oneOf:
- $ref: "#/components/schemas/ResponseBodyText"
Expand Down

0 comments on commit af2b826

Please sign in to comment.