Skip to content

Commit

Permalink
add meta fields to Metadata questions
Browse files Browse the repository at this point in the history
Signed-off-by: p4u <[email protected]>
  • Loading branch information
p4u committed Oct 24, 2024
1 parent d969541 commit c1ce6d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/metadata_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ type Question struct {
Choices []ChoiceMetadata `json:"choices"`
Description LanguageString `json:"description"`
Title LanguageString `json:"title"`
Meta any `json:"meta,omitempty"`
}

// ChoiceMetadata contains metadata for one choice of a question
type ChoiceMetadata struct {
Title LanguageString `json:"title"`
Value uint32 `json:"value"`
Meta any `json:"meta,omitempty"`
}

// AccountMetadata is the metadata for an organization
Expand Down

0 comments on commit c1ce6d7

Please sign in to comment.