Skip to content

Commit

Permalink
Merge pull request #25623 from fontis/b-aws_api_gateway-remove_length…
Browse files Browse the repository at this point in the history
…_validation

r/aws_api_gateway_model: remove schema length validation
  • Loading branch information
ewbankkit authored Jun 30, 2022
2 parents b865c1c + be00134 commit 09118c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/25623.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_api_gateway_model: Remove length validation from schema
```
9 changes: 3 additions & 6 deletions internal/service/apigateway/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,9 @@ func ResourceModel() *schema.Resource {
},

"schema": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.All(
validation.StringLenBetween(0, 32768),
validation.StringIsJSON,
),
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: verify.SuppressEquivalentJSONDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
Expand Down

0 comments on commit 09118c7

Please sign in to comment.