From 25d9c628d4b0805990eb8380d0919b30f20ba44b Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Thu, 12 Aug 2021 02:01:00 -0700 Subject: [PATCH] fix(docs): correct feature_flags link and json exmaples --- README.md | 2 +- docs/utilities/feature_flags.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89889bd3a92..46a3671f93b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ A suite of Python utilities for AWS Lambda functions to ease adopting best pract * **[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 * **[Parser](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/parser/)** - Data parsing and deep validation using Pydantic * **[Idempotency](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/idempotency/)** - Convert your Lambda functions into idempotent operations which are safe to retry -* **[Feature Flags](./utilities/feature_flags.md)** - A simple rule engine to evaluate when one or multiple features should be enabled depending on the input +* **[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 ### Installation diff --git a/docs/utilities/feature_flags.md b/docs/utilities/feature_flags.md index 556cf9f4925..5651542d451 100644 --- a/docs/utilities/feature_flags.md +++ b/docs/utilities/feature_flags.md @@ -328,7 +328,7 @@ You can use `get_enabled_features` method for scenarios where you need a list of ```json hl_lines="2 8" { - "body": '{"username": "lessa", "tier": "premium", "basked_id": "random_id"}', + "body": "{\"username\": \"lessa\", \"tier\": \"premium\", \"basked_id\": \"random_id\"}", "resource": "/products", "path": "/products", "httpMethod": "GET", @@ -370,7 +370,7 @@ You can use `get_enabled_features` method for scenarios where you need a list of { "action": "IN", "key": "CloudFront-Viewer-Country", - "value": ["NL", "IE", "UK", "PL", "PT"}, + "value": ["NL", "IE", "UK", "PL", "PT"], } ] }