Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 02866ae

Browse files
authored
Merge pull request #1473 from grafana/specifying_meta_tags_must_be_optional
meta tag records must be optional in meta tag upsert requests
2 parents 4f0ef70 + e55b6ee commit 02866ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/models/meta_records.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
//go:generate msgp
1111

1212
type MetaTagRecordUpsert struct {
13-
MetaTags []string `json:"metaTags" binding:"Required"`
13+
MetaTags []string `json:"metaTags"`
1414
Expressions []string `json:"expressions" binding:"Required"`
1515
Propagate bool `json:"propagate"`
1616
}
@@ -40,7 +40,7 @@ type MetaTagRecordUpsertResult struct {
4040

4141
type IndexMetaTagRecordUpsert struct {
4242
OrgId uint32 `json:"orgId" binding:"Required"`
43-
MetaTags []string `json:"metaTags" binding:"Required"`
43+
MetaTags []string `json:"metaTags"`
4444
Expressions []string `json:"expressions" binding:"Required"`
4545
}
4646

0 commit comments

Comments
 (0)