Skip to content

Commit

Permalink
Fix error model
Browse files Browse the repository at this point in the history
  • Loading branch information
irees committed Nov 23, 2023
1 parent 53156e3 commit 795d2d8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 84 deletions.
102 changes: 27 additions & 75 deletions internal/generated/gqlout/generated.go

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

21 changes: 12 additions & 9 deletions model/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,23 +283,26 @@ type ValidationRealtimeResult struct {
Json map[string]any `json:"json"`
}

type ValidationResultError struct {
Filename string `json:"filename"`
ErrorType string `json:"error_type"`
EntityID string `json:"entity_id"`
Field string `json:"field"`
Value string `json:"value"`
Message string `json:"message"`
}

type ValidationResultErrorGroup struct {
Filename string `json:"filename"`
ErrorType string `json:"error_type"`
Count int `json:"count"`
Limit int `json:"limit"`
Code int `json:"code"`
Errors []*ValidationResultError `json:"errors"`
}

type ValidationResultError struct {
Filename string `json:"filename"`
ErrorType string `json:"error_type"`
EntityID string `json:"entity_id"`
Field string `json:"field"`
Value string `json:"value"`
Message string `json:"message"`
Code *int `json:"code"`
Geometries []*tt.Geometry `json:"geometries"`
}

///////////////////// Fetch

type FeedVersionFetchResult struct {
Expand Down

0 comments on commit 795d2d8

Please sign in to comment.