Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Feature/snow 279 add scripted rest api (#26)
Browse files Browse the repository at this point in the history
Fix scripted rest api resource having wrong method name
  • Loading branch information
dguerinCoveo authored May 25, 2020
1 parent 31356e6 commit 3296846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servicenow/resources/resource_scripted_rest_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
Expand Down

0 comments on commit 3296846

Please sign in to comment.