-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert json resource properties into better json schem validation (#…
…3423) * JSON object type cleanup * Convert all json properties to support string too
- Loading branch information
Showing
776 changed files
with
9,099 additions
and
1,299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nloadsMetadata/23be708e675cb6098b08969e4dbbc3f54cfc32461d10e077e7e5de1fc25d8b8f.meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"etag": "\"77f8f0ff694760d9d86001ab4dca1909\"", "url": "https://schema.cloudformation.us-gov-west-1.amazonaws.com/CloudformationSchema.zip"} | ||
{"etag": "\"cab7c18393919e17ef44d9fca8c62008\"", "url": "https://schema.cloudformation.us-gov-west-1.amazonaws.com/CloudformationSchema.zip"} |
2 changes: 1 addition & 1 deletion
2
...nloadsMetadata/d85e2e061cacfcffe4902adb1074a04e6bb7f975b606f8db57532faddfcdd8c8.meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"etag": "\"bb135f465b3346b7dea602d254e4c44c\"", "url": "https://schema.cloudformation.ca-west-1.amazonaws.com/CloudformationSchema.zip"} | ||
{"etag": "\"ca78dae4bedfa5f1574d2d0cafd31df2\"", "url": "https://schema.cloudformation.ca-west-1.amazonaws.com/CloudformationSchema.zip"} |
Empty file.
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/alexa_ask_skill/overrides_manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/definitions/Overrides/properties/Manifest", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/definitions/Overrides/properties/Manifest", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/aws_apigateway_model/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/Schema", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/Schema", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/aws_apigateway_restapi/body.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/Body", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/Body", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/aws_apigateway_restapi/policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/Policy", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/Policy", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/aws_apigatewayv2_api/body.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/Body", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/Body", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
22 changes: 22 additions & 0 deletions
22
src/cfnlint/data/schemas/patches/providers/all/aws_apigatewayv2_api/tags.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/Tags", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/Tags", | ||
"value": { | ||
"additionalProperties": false, | ||
"patternProperties": { | ||
".*": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
...oviders/all/aws_apigatewayv2_apigatewaymanagedoverrides/stageoverrides_routesettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/definitions/StageOverrides/properties/RouteSettings", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/definitions/StageOverrides/properties/RouteSettings", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
...viders/all/aws_apigatewayv2_apigatewaymanagedoverrides/stageoverrides_stagevariables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/definitions/StageOverrides/properties/StageVariables", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/definitions/StageOverrides/properties/StageVariables", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
22 changes: 22 additions & 0 deletions
22
src/cfnlint/data/schemas/patches/providers/all/aws_apigatewayv2_domainname/tags.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/Tags", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/Tags", | ||
"value": { | ||
"additionalProperties": false, | ||
"patternProperties": { | ||
".*": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
...nt/data/schemas/patches/providers/all/aws_apigatewayv2_integration/requestparameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/RequestParameters", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/RequestParameters", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
...int/data/schemas/patches/providers/all/aws_apigatewayv2_integration/requesttemplates.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/RequestTemplates", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/RequestTemplates", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
...t/data/schemas/patches/providers/all/aws_apigatewayv2_integration/responseparameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/ResponseParameters", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/ResponseParameters", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
...chemas/patches/providers/all/aws_apigatewayv2_integrationresponse/responseparameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/ResponseParameters", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/ResponseParameters", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
...schemas/patches/providers/all/aws_apigatewayv2_integrationresponse/responsetemplates.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/ResponseTemplates", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/ResponseTemplates", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/aws_apigatewayv2_model/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/Schema", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/Schema", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/aws_apigatewayv2_route/requestmodels.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/RequestModels", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/RequestModels", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
src/cfnlint/data/schemas/patches/providers/all/aws_apigatewayv2_route/requestparameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"op": "test", | ||
"path": "/properties/RequestParameters", | ||
"value": { | ||
"type": "object" | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/properties/RequestParameters", | ||
"value": { | ||
"format": "json", | ||
"type": [ | ||
"object", | ||
"string" | ||
] | ||
} | ||
} | ||
] |
Empty file.
Oops, something went wrong.