Skip to content

Commit

Permalink
resource/aws_apigatewayv2_model: Replace deprecated validation.Valida…
Browse files Browse the repository at this point in the history
…teJsonString with validation.StringIsJSON

Reference: #11844
Reference: #12087

Output from acceptance testing:

```
--- PASS: TestAccAWSAPIGatewayV2Model_disappears (18.58s)
--- PASS: TestAccAWSAPIGatewayV2Model_basic (20.32s)
--- PASS: TestAccAWSAPIGatewayV2Model_AllAttributes (46.23s)
```
  • Loading branch information
bflad committed Apr 28, 2020
1 parent f12736e commit 1cf5ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_apigatewayv2_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func resourceAwsApiGatewayV2Model() *schema.Resource {
Required: true,
ValidateFunc: validation.All(
validation.StringLenBetween(0, 32768),
validation.ValidateJsonString,
validation.StringIsJSON,
),
DiffSuppressFunc: suppressEquivalentJsonDiffs,
StateFunc: func(v interface{}) string {
Expand Down

0 comments on commit 1cf5ae6

Please sign in to comment.