Skip to content

docs(api): migrating the jmespath utility to mkdocstrings #6006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Built-in JMESPath Functions to easily deserialize common encoded JSON payloads in Lambda functions.
!!! abstract "Usage Documentation"
[`JMESPath Functions`](../utilities/jmespath_functions.md)
"""
from __future__ import annotations

import base64
Expand Down Expand Up @@ -42,7 +47,7 @@ def query(data: dict | str, envelope: str, jmespath_options: dict | None = None)

Built-in JMESPath functions include: powertools_json, powertools_base64, powertools_base64_gzip

Examples
Example
--------

**Deserialize JSON string and extracts data from body key**
Expand Down
2 changes: 2 additions & 0 deletions aws_lambda_powertools/utilities/parameters/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""
Base for Parameter providers
!!! abstract "Usage Documentation"
[`Parameters`](../utilities/parameters.md)
"""

from __future__ import annotations
Expand Down
2 changes: 2 additions & 0 deletions docs/api_doc/jmespath_functions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!-- markdownlint-disable MD043 MD041 -->
::: aws_lambda_powertools.utilities.jmespath_utils
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ nav:
# - Casual to regular contributor: contributing/tracks/casual_regular_contributor.md
# - Customer to advocate: contributing/tracks/customer_advocate.md
- API Documentation:
- JMESPath Functions: api_doc/jmespath_functions.md
- Parameters:
- Base: api_doc/parameters/base.md
- AppConfig: api_doc/parameters/appconfig.md
Expand Down
Loading