Skip to content

Commit

Permalink
Merge pull request #1285 from traPtitech/fix/openapi-questionbase_schema
Browse files Browse the repository at this point in the history
fix: adjust Question schema content
  • Loading branch information
kaitoyama authored Dec 17, 2024
2 parents f16d7a3 + 891cdd2 commit 55c5ce3
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 129 deletions.
10 changes: 4 additions & 6 deletions docs/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -674,29 +674,27 @@ components:
example: 1
question_id:
type: integer
description: |
質問を追加する場合はnull。
example: 1
created_at:
type: string
format: date-time
example: 2020-01-01T00:00:00+09:00
required:
- questionnaire_id
- question_id
- created_at
QuestionBase:
type: object
properties:
title:
type: string
description:
body:
type: string
is_required:
type: boolean
description: |
回答必須かどうか
required:
- title
- description
- body
- is_required
QuestionSettingsByType:
oneOf:
Expand Down
137 changes: 68 additions & 69 deletions openapi/spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 31 additions & 54 deletions openapi/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 55c5ce3

Please sign in to comment.