From c1ce6d744bc5092a8764f65418c908670ca502b2 Mon Sep 17 00:00:00 2001 From: p4u Date: Thu, 24 Oct 2024 12:25:42 +0200 Subject: [PATCH] add meta fields to Metadata questions Signed-off-by: p4u --- api/metadata_types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/metadata_types.go b/api/metadata_types.go index 066d9849d..d41d75751 100644 --- a/api/metadata_types.go +++ b/api/metadata_types.go @@ -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