Skip to content
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

docs(middleware): fix sample code #772

Merged
merged 2 commits into from
Oct 23, 2021
Merged

docs(middleware): fix sample code #772

merged 2 commits into from
Oct 23, 2021

Conversation

arthurf1969
Copy link
Contributor

@arthurf1969 arthurf1969 commented Oct 21, 2021

Description of changes:

The sample provided in the documentation for the middleware is not working as expected. The value of the field variable is overwritten that later on causes failures. With this change we provide a sample that can be used as a starting point.

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


View rendered docs/utilities/middleware_factory.md

@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Oct 21, 2021
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 21, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 21, 2021

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.

@heitorlessa
Copy link
Contributor

Thanks a lot @arthurf1969 !!

@heitorlessa heitorlessa merged commit c3769f3 into aws-powertools:develop Oct 23, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 23, 2021

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

michaelbrewer pushed a commit to gyft/aws-lambda-powertools-python that referenced this pull request Oct 24, 2021
heitorlessa added a commit to gyft/aws-lambda-powertools-python that referenced this pull request Oct 29, 2021
…uter

* michaelbrewer/docs/router:
  feat(data-classes): ActiveMQ and RabbitMQ support (aws-powertools#770)
  feat(appsync): add Router to allow large resolver composition (aws-powertools#776)
  chore(deps-dev): bump mkdocs-material from 7.3.3 to 7.3.5 (aws-powertools#781)
  chore(deps-dev): bump flake8-isort from 4.0.0 to 4.1.1 (aws-powertools#785)
  chore(deps): bump urllib3 from 1.26.4 to 1.26.5 (aws-powertools#787)
  chore(deps-dev): bump flake8-eradicate from 1.1.0 to 1.2.0 (aws-powertools#784)
  chore(deps): bump boto3 from 1.18.61 to 1.19.6 (aws-powertools#783)
  chore(deps-dev): bump pytest-asyncio from 0.15.1 to 0.16.0 (aws-powertools#782)
  docs: fix indentation of SAM snippets in install section (aws-powertools#778)
  Fix middleware sample (aws-powertools#772)
  Removed unused import, added typing imports, fixed typo in example. (aws-powertools#774)
  Fix middleware sample (aws-powertools#772)
  Removed unused import, added typing imports, fixed typo in example. (aws-powertools#774)
  Update docs/core/event_handler/api_gateway.md

# Conflicts:
#	docs/core/event_handler/api_gateway.md
@heitorlessa heitorlessa changed the title Fix middleware sample docs(middleware): fix sample code Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants