Skip to content

Commit

Permalink
feat: set error message required (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumachan-mis authored Dec 30, 2024
1 parent 2692ee3 commit c59d2be
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ properties:
$ref: ../../../entity/project/ProjectOnlyIdError.yaml
chapter:
$ref: ../../../entity/chapter/ChapterWithoutAutofieldError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ properties:
$ref: ../../../entity/user/UserOnlyIdError.yaml
project:
$ref: ../../../entity/project/ProjectOnlyIdError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ properties:
$ref: ../../../entity/project/ProjectOnlyIdError.yaml
chapter:
$ref: ../../../entity/chapter/ChapterError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ properties:
$ref: ../../../entity/chapter/ChapterOnlyIdError.yaml
section:
$ref: ../../../entity/section/SectionOnlyIdError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ properties:
$ref: ../../../entity/chapter/ChapterOnlyIdError.yaml
sections:
$ref: ../../../entity/section/SectionWithoutAutofieldListError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ properties:
$ref: ../../../entity/chapter/ChapterOnlyIdError.yaml
graph:
$ref: ../../../entity/graph/GraphContentError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ properties:
$ref: ../../../entity/project/ProjectOnlyIdError.yaml
chapter:
$ref: ../../../entity/chapter/ChapterOnlyIdError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ properties:
$ref: ../../../entity/project/ProjectOnlyIdError.yaml
paper:
$ref: ../../../entity/paper/PaperError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ properties:
$ref: ../../../entity/user/UserOnlyIdError.yaml
project:
$ref: ../../../entity/project/ProjectWithoutAutofieldError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ properties:
$ref: ../../../entity/user/UserOnlyIdError.yaml
project:
$ref: ../../../entity/project/ProjectOnlyIdError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ properties:
example: unexpected EOF
user:
$ref: ../../../entity/user/UserOnlyIdError.yaml
required:
- message
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ properties:
$ref: ../../../entity/user/UserOnlyIdError.yaml
project:
$ref: ../../../entity/project/ProjectError.yaml
required:
- message
2 changes: 1 addition & 1 deletion internal/model/model_chapter_create_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type ChapterCreateErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_chapter_list_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type ChapterListErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_chapter_update_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type ChapterUpdateErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_graph_find_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type GraphFindErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_graph_sectionalize_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type GraphSectionalizeErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_graph_update_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type GraphUpdateErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_paper_find_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type PaperFindErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_paper_update_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type PaperUpdateErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_project_create_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type ProjectCreateErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_project_find_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type ProjectFindErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model_project_list_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type ProjectListErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`
}
2 changes: 1 addition & 1 deletion internal/model/model_project_update_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package model
type ProjectUpdateErrorResponse struct {

// Error message when request body format is invalid
Message string `json:"message,omitempty"`
Message string `json:"message"`

User UserOnlyIdError `json:"user,omitempty"`

Expand Down

0 comments on commit c59d2be

Please sign in to comment.