Skip to content

Commit b8e45ea

Browse files
committed
chore: fix docstring; import order
1 parent 6877dee commit b8e45ea

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

aws_lambda_powertools/utilities/validation/validator.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def handler(event, context):
6969
7070
**Unwrap, decode base64 and deserialize JSON string event before validating against actual payload - using built-in functions** # noqa: E501
7171
72-
import json
7372
from aws_lambda_powertools.utilities.validation import validator
7473
7574
@validator(inbound_schema=json_schema_dict, envelope="Records[*].kinesis.powertools_json(powertools_base64(data))")
@@ -78,7 +77,6 @@ def handler(event, context):
7877
7978
**Unwrap, decompress ZIP archive and deserialize JSON string event before validating against actual payload - using built-in functions** # noqa: E501
8079
81-
import json
8280
from aws_lambda_powertools.utilities.validation import validator
8381
8482
@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
139137
140138
**Validate event**
141139
142-
import json
143140
from aws_lambda_powertools.utilities.validation import validate
144141
145142
def handler(event, context):
@@ -148,7 +145,6 @@ def handler(event, context):
148145
149146
**Unwrap event before validating against actual payload - using built-in envelopes**
150147
151-
import json
152148
from aws_lambda_powertools.utilities.validation import validate, envelopes
153149
154150
def handler(event, context):
@@ -157,7 +153,6 @@ def handler(event, context):
157153
158154
**Unwrap event before validating against actual payload - using custom JMESPath expression**
159155
160-
import json
161156
from aws_lambda_powertools.utilities.validation import validate
162157
163158
def handler(event, context):
@@ -166,7 +161,6 @@ def handler(event, context):
166161
167162
**Unwrap and deserialize JSON string event before validating against actual payload - using built-in functions**
168163
169-
import json
170164
from aws_lambda_powertools.utilities.validation import validate
171165
172166
def handler(event, context):
@@ -175,7 +169,6 @@ def handler(event, context):
175169
176170
**Unwrap, decode base64 and deserialize JSON string event before validating against actual payload - using built-in functions**
177171
178-
import json
179172
from aws_lambda_powertools.utilities.validation import validate
180173
181174
def handler(event, context):
@@ -184,7 +177,6 @@ def handler(event, context):
184177
185178
**Unwrap, decompress ZIP archive and deserialize JSON string event before validating against actual payload - using built-in functions** # noqa: E501
186179
187-
import json
188180
from aws_lambda_powertools.utilities.validation import validate
189181
190182
def handler(event, context):

0 commit comments

Comments
 (0)