@@ -69,7 +69,6 @@ def handler(event, context):
69
69
70
70
**Unwrap, decode base64 and deserialize JSON string event before validating against actual payload - using built-in functions** # noqa: E501
71
71
72
- import json
73
72
from aws_lambda_powertools.utilities.validation import validator
74
73
75
74
@validator(inbound_schema=json_schema_dict, envelope="Records[*].kinesis.powertools_json(powertools_base64(data))")
@@ -78,7 +77,6 @@ def handler(event, context):
78
77
79
78
**Unwrap, decompress ZIP archive and deserialize JSON string event before validating against actual payload - using built-in functions** # noqa: E501
80
79
81
- import json
82
80
from aws_lambda_powertools.utilities.validation import validator
83
81
84
82
@validator(inbound_schema=json_schema_dict, envelope="awslogs.powertools_base64_gzip(data) | powertools_json(@).logEvents[*]")
@@ -139,7 +137,6 @@ def validate(event: Dict, schema: Dict = None, envelope: str = None, jmespath_op
139
137
140
138
**Validate event**
141
139
142
- import json
143
140
from aws_lambda_powertools.utilities.validation import validate
144
141
145
142
def handler(event, context):
@@ -148,7 +145,6 @@ def handler(event, context):
148
145
149
146
**Unwrap event before validating against actual payload - using built-in envelopes**
150
147
151
- import json
152
148
from aws_lambda_powertools.utilities.validation import validate, envelopes
153
149
154
150
def handler(event, context):
@@ -157,7 +153,6 @@ def handler(event, context):
157
153
158
154
**Unwrap event before validating against actual payload - using custom JMESPath expression**
159
155
160
- import json
161
156
from aws_lambda_powertools.utilities.validation import validate
162
157
163
158
def handler(event, context):
@@ -166,7 +161,6 @@ def handler(event, context):
166
161
167
162
**Unwrap and deserialize JSON string event before validating against actual payload - using built-in functions**
168
163
169
- import json
170
164
from aws_lambda_powertools.utilities.validation import validate
171
165
172
166
def handler(event, context):
@@ -175,7 +169,6 @@ def handler(event, context):
175
169
176
170
**Unwrap, decode base64 and deserialize JSON string event before validating against actual payload - using built-in functions**
177
171
178
- import json
179
172
from aws_lambda_powertools.utilities.validation import validate
180
173
181
174
def handler(event, context):
@@ -184,7 +177,6 @@ def handler(event, context):
184
177
185
178
**Unwrap, decompress ZIP archive and deserialize JSON string event before validating against actual payload - using built-in functions** # noqa: E501
186
179
187
- import json
188
180
from aws_lambda_powertools.utilities.validation import validate
189
181
190
182
def handler(event, context):
0 commit comments