Skip to content

Commit 535b708

Browse files
fix(docs): correct feature_flags link and json exmaples (aws-powertools#605)
1 parent f627b02 commit 535b708

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A suite of Python utilities for AWS Lambda functions to ease adopting best pract
2525
* **[Event source data classes](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/data_classes/)** - Data classes describing the schema of common Lambda event triggers
2626
* **[Parser](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/parser/)** - Data parsing and deep validation using Pydantic
2727
* **[Idempotency](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/idempotency/)** - Convert your Lambda functions into idempotent operations which are safe to retry
28-
* **[Feature Flags](./utilities/feature_flags.md)** - A simple rule engine to evaluate when one or multiple features should be enabled depending on the input
28+
* **[Feature Flags](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/feature_flags/)** - A simple rule engine to evaluate when one or multiple features should be enabled depending on the input
2929

3030
### Installation
3131

docs/utilities/feature_flags.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ You can use `get_enabled_features` method for scenarios where you need a list of
328328

329329
```json hl_lines="2 8"
330330
{
331-
"body": '{"username": "lessa", "tier": "premium", "basked_id": "random_id"}',
331+
"body": "{\"username\": \"lessa\", \"tier\": \"premium\", \"basked_id\": \"random_id\"}",
332332
"resource": "/products",
333333
"path": "/products",
334334
"httpMethod": "GET",
@@ -370,7 +370,7 @@ You can use `get_enabled_features` method for scenarios where you need a list of
370370
{
371371
"action": "IN",
372372
"key": "CloudFront-Viewer-Country",
373-
"value": ["NL", "IE", "UK", "PL", "PT"},
373+
"value": ["NL", "IE", "UK", "PL", "PT"],
374374
}
375375
]
376376
}

0 commit comments

Comments
 (0)