From abd696ca566973e41a9ada8f7bc08f18268cbee5 Mon Sep 17 00:00:00 2001 From: Linh Vo Date: Mon, 3 Apr 2017 10:50:19 -0500 Subject: [PATCH] rm govalidation phase --- db.go | 2 +- handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db.go b/db.go index d278cb2ef..36fb38a94 100644 --- a/db.go +++ b/db.go @@ -478,7 +478,7 @@ func MergeSchemas(a, b []*DBInfo) []*DBInfo { // DBOptions represents options to set when initializing a db. type DBOptions struct { - ColumnLabel string `json:"columnLabel,omitempty" valid:"required,string"` + ColumnLabel string `json:"columnLabel,omitempty"` } // hasTime returns true if a contains a non-nil time. diff --git a/handler.go b/handler.go index eba6c51af..5ee1a03ce 100644 --- a/handler.go +++ b/handler.go @@ -412,7 +412,7 @@ func (h Handler) validateOptions(path string, options map[string]interface{}) er type postDBRequest struct { DB string `json:"db"` - Options DBOptions `json:"options" valid:"json"` + Options DBOptions `json:"options"` } type postDBResponse struct{}