Skip to content

Commit

Permalink
feat: fix model types
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Jan 4, 2024
1 parent cabe44c commit 4b5993e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type (
Name string `json:"name"`
Description string `json:"description"`
ConnectionInfo *string `json:"connection_info,omitempty"`
NextID int `json:"next_id"`
NextID *int `json:"next_id"`
MaxAttempts *int `json:"max_attempts,omitempty"`
Function string `json:"function"`
Value int `json:"value"`
Expand Down Expand Up @@ -46,7 +46,7 @@ type (
ID int `json:"id"`
ChallengeID int `json:"challenge_id"`
Content string `json:"content"`
Data any `json:"data"` // TODO find an example
Data string `json:"data"`
Type string `json:"type"`
Challenge int `json:"challenge"` // XXX may be duplicated with ChallengeID ?
}
Expand Down

0 comments on commit 4b5993e

Please sign in to comment.