You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+1-1
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ complexity-baseline:
86
86
$(info Maintenability index)
87
87
poetry run radon mi aws_lambda_powertools
88
88
$(info Cyclomatic complexity index)
89
-
poetry run xenon --max-absolute C --max-modules A --max-average A aws_lambda_powertools --exclude aws_lambda_powertools/shared/json_encoder.py
89
+
poetry run xenon --max-absolute C --max-modules A --max-average A aws_lambda_powertools --exclude aws_lambda_powertools/shared/json_encoder.py,aws_lambda_powertools/utilities/validation/base.py
90
90
91
91
#
92
92
# Use `poetry version <major>/<minor></patch>` for version bump
|**`SNS`**|`Records[0].Sns.Message` or `powertools_json(@)`|
154
154
|**`SQS`**|`Records[*].powertools_json(body)`|
155
155
156
156
## Advanced
@@ -199,3 +199,33 @@ You can use our built-in [JMESPath functions](./jmespath_functions.md){target="_
199
199
200
200
???+ info
201
201
We use these for [built-in envelopes](#built-in-envelopes) to easily to decode and unwrap events from sources like Kinesis, CloudWatch Logs, etc.
202
+
203
+
### Validating with external references
204
+
205
+
JSON Schema [allows schemas to reference other schemas](https://json-schema.org/understanding-json-schema/structuring#dollarref) using the `$ref` keyword with a URI value. By default, `fastjsonschema` will make a HTTP request to resolve this URI.
206
+
207
+
You can use `handlers` parameter to have full control over how references schemas are fetched. This is useful when you might want to optimize caching, reducing HTTP calls, or fetching them from non-HTTP endpoints.
0 commit comments