From 32968464381448c0e7ce518e80c9e0b4c6ad0283 Mon Sep 17 00:00:00 2001 From: dguerinCoveo <64476861+dguerinCoveo@users.noreply.github.com> Date: Mon, 25 May 2020 12:01:18 -0400 Subject: [PATCH] Feature/snow 279 add scripted rest api (#26) Fix scripted rest api resource having wrong method name --- servicenow/resources/resource_scripted_rest_resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servicenow/resources/resource_scripted_rest_resource.go b/servicenow/resources/resource_scripted_rest_resource.go index 0c2e29a..672bb82 100644 --- a/servicenow/resources/resource_scripted_rest_resource.go +++ b/servicenow/resources/resource_scripted_rest_resource.go @@ -43,9 +43,9 @@ func ResourceScriptedRestResource() *schema.Resource { scriptedRestResourceHTTPMethod: { Type: schema.TypeString, Required: true, - Description: "The HTTP method that maps to this record. Can be 'get', 'post', 'put', 'patch' or 'delete'.", + Description: "The HTTP method that maps to this record. Can be 'GET', 'POST', 'PUT', 'PATCH' or 'DELETE'.", ValidateFunc: func(val interface{}, key string) (warns []string, errs []error) { - warns, errs = validateStringValue(val.(string), key, []string{"get", "post", "put", "patch", "delete"}) + warns, errs = validateStringValue(val.(string), key, []string{"GET", "POST", "PUT", "PATCH", "DELETE"}) return }, },