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

refactor: openAPIのarrayのitemをcomponentに切り出し #1266

Merged
merged 1 commit into from
Sep 3, 2024
Merged
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
70 changes: 38 additions & 32 deletions docs/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -882,17 +882,20 @@ components:
ResponsesWithQuestionnaireInfo:
type: array
items:
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/ResponseWithQuestionnaireInfoItem"
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"
ResponseBody:
oneOf:
- $ref: "#/components/schemas/ResponseBodyText"
Expand Down Expand Up @@ -960,27 +963,30 @@ components:
Result:
type: array
items:
allOf:
- $ref: "#/components/schemas/QuestionnaireID"
- type: object
properties:
response_id:
type: integer
example: 1
submitted_at:
type: string
format: date-time
example: 2020-01-01T00:00:00+09:00
modified_at:
type: string
format: date-time
example: 2020-01-01T00:00:00+09:00
required:
- response_id
- respondent
- submitted_at
- modified_at
- $ref: "#/components/schemas/NewResponse"
$ref: "#/components/schemas/ResultItem"
ResultItem:
type: object
allOf:
- $ref: "#/components/schemas/QuestionnaireID"
- type: object
properties:
response_id:
type: integer
example: 1
submitted_at:
type: string
format: date-time
example: 2020-01-01T00:00:00+09:00
modified_at:
type: string
format: date-time
example: 2020-01-01T00:00:00+09:00
required:
- response_id
- respondent
- submitted_at
- modified_at
- $ref: "#/components/schemas/NewResponse"
UsersAndGroups:
type: object
properties:
Expand Down
Loading