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

meta tag records must be optional in meta tag upsert requests #1473

Merged
merged 1 commit into from
Sep 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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