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

Commit

Permalink
Merge pull request #1473 from grafana/specifying_meta_tags_must_be_op…
Browse files Browse the repository at this point in the history
…tional

meta tag records must be optional in meta tag upsert requests
  • Loading branch information
replay authored Sep 25, 2019
2 parents 4f0ef70 + e55b6ee commit 02866ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/models/meta_records.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
//go:generate msgp

type MetaTagRecordUpsert struct {
MetaTags []string `json:"metaTags" binding:"Required"`
MetaTags []string `json:"metaTags"`
Expressions []string `json:"expressions" binding:"Required"`
Propagate bool `json:"propagate"`
}
Expand Down Expand Up @@ -40,7 +40,7 @@ type MetaTagRecordUpsertResult struct {

type IndexMetaTagRecordUpsert struct {
OrgId uint32 `json:"orgId" binding:"Required"`
MetaTags []string `json:"metaTags" binding:"Required"`
MetaTags []string `json:"metaTags"`
Expressions []string `json:"expressions" binding:"Required"`
}

Expand Down

0 comments on commit 02866ae

Please sign in to comment.