Skip to content

Commit 2be3071

Browse files
chore(docs): disable line length rule using older syntax (#2920)
* fix(parameters): make cache aware of single vs multiple calls Signed-off-by: heitorlessa <[email protected]> * chore: cleanup, add test for single and nested Signed-off-by: heitorlessa <[email protected]> * docs: disable line length rule using older syntax Signed-off-by: heitorlessa <[email protected]> --------- Signed-off-by: heitorlessa <[email protected]> Co-authored-by: Leandro Damascena <[email protected]>
1 parent 832df6f commit 2be3071

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

docs/maintainers.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,9 @@ Add integration checks that validate pull requests and pushes to ease the burden
289289

290290
### Negative Impact on the Project
291291

292-
<!-- markdownlint-disable-next-line MD013 -->
292+
<!-- markdownlint-disable MD013 -->
293293
Actions that negatively impact the project will be handled by the admins, in coordination with other maintainers, in balance with the urgency of the issue. Examples would be [Code of Conduct](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/CODE_OF_CONDUCT.md){target="_blank"} violations, deliberate harmful or malicious actions, spam, monopolization, and security risks.
294+
<!-- markdownlint-enable MD013 -->
294295

295296
### Becoming a maintainer
296297

docs/utilities/validation.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ Here is a sample custom EventBridge event, where we only validate what's inside
112112
```json
113113
--8<-- "examples/validation/src/getting_started_validator_unwrapping_payload.json"
114114
```
115-
<!-- markdownlint-disable-next-line MD013 -->
115+
<!-- markdownlint-disable MD013 -->
116116
This is quite powerful because you can use JMESPath Query language to extract records from [arrays](https://jmespath.org/tutorial.html#list-and-slice-projections){target="_blank" rel="nofollow"}, combine [pipe](https://jmespath.org/tutorial.html#pipe-expressions){target="_blank" rel="nofollow"} and [function expressions](https://jmespath.org/tutorial.html#functions){target="_blank" rel="nofollow"}.
117+
<!-- markdownlint-enable MD013 -->
117118

118119
When combined, these features allow you to extract what you need before validating the actual payload.
119120

@@ -141,16 +142,16 @@ We provide built-in envelopes to easily extract the payload from popular event s
141142

142143
Here is a handy table with built-in envelopes along with their JMESPath expressions in case you want to build your own.
143144

144-
| Envelope | JMESPath expression |
145-
| --------------------------------- | ------------------------------------------------------------------------ |
146-
| **`API_GATEWAY_HTTP`** | `powertools_json(body)` |
147-
| **`API_GATEWAY_REST`** | `powertools_json(body)` |
148-
| **`CLOUDWATCH_EVENTS_SCHEDULED`** | `detail` |
149-
| **`CLOUDWATCH_LOGS`** | `awslogs.powertools_base64_gzip(data) | powertools_json(@).logEvents[*]` |
150-
| **`EVENTBRIDGE`** | `detail` |
151-
| **`KINESIS_DATA_STREAM`** | `Records[*].kinesis.powertools_json(powertools_base64(data))` |
152-
| **`SNS`** | `Records[0].Sns.Message | powertools_json(@)` |
153-
| **`SQS`** | `Records[*].powertools_json(body)` |
145+
| Envelope | JMESPath expression |
146+
| --------------------------------- | ------------------------------------------------------------- |
147+
| **`API_GATEWAY_HTTP`** | `powertools_json(body)` |
148+
| **`API_GATEWAY_REST`** | `powertools_json(body)` |
149+
| **`CLOUDWATCH_EVENTS_SCHEDULED`** | `detail` |
150+
| **`CLOUDWATCH_LOGS`** | `awslogs.powertools_base64_gzip(data) | powertools_json(@).logEvents[*]` |
151+
| **`EVENTBRIDGE`** | `detail` |
152+
| **`KINESIS_DATA_STREAM`** | `Records[*].kinesis.powertools_json(powertools_base64(data))` |
153+
| **`SNS`** | `Records[0].Sns.Message | powertools_json(@)` |
154+
| **`SQS`** | `Records[*].powertools_json(body)` |
154155

155156
## Advanced
156157

0 commit comments

Comments
 (0)