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

Add a test of a middleware providing a context to a Routes #2487

Merged
merged 5 commits into from
Oct 18, 2023

Conversation

guizmaii
Copy link
Member

@guizmaii guizmaii commented Oct 18, 2023

It gives an example on how to use a "providing middleware" when using Routes
I struggled to find how

@guizmaii guizmaii marked this pull request as ready for review October 18, 2023 14:11
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (3a6525c) 64.90% compared to head (8c20cd5) 64.94%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2487      +/-   ##
==========================================
+ Coverage   64.90%   64.94%   +0.04%     
==========================================
  Files         136      136              
  Lines        7197     7197              
  Branches     1296     1296              
==========================================
+ Hits         4671     4674       +3     
+ Misses       2526     2523       -3     

see 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jdegoes jdegoes merged commit d0a517e into zio:main Oct 18, 2023
23 checks passed
@guizmaii guizmaii deleted the context_provider_middleware_with_routes branch October 19, 2023 06:35
987Nabil pushed a commit to 987Nabil/zio-http that referenced this pull request Oct 24, 2023
* Add a test of a middleware providing a context to a `Routes`

* Add a test of a middleware providing a context to a `Routes`

* scalafmt

* scalafmt
jdegoes pushed a commit that referenced this pull request Nov 29, 2023
…2470)

* Improve OpenAPI model; Add OpenAPI generator for EndpointAPI (#1498)

* Minimize schema for optional fields

* Integrate main changes

* Fix Scala 3 build

* Fix exhaustive matching

* More OpenAPI generation tests

* Use latest zio-schema snapshot for Scala 3 macro derivation fix

* Formatting

* OpenAPI tests now compare json ASTs, to avoid string render differences

* Refactoring

* improve docs (#2482)

* Add a test of a middleware providing a context to a `Routes` (#2487)

* Add a test of a middleware providing a context to a `Routes`

* Add a test of a middleware providing a context to a `Routes`

* scalafmt

* scalafmt

* Remove usage of deprecated method in build.sbt (#2486)

* Update sbt-github-actions to 0.18.0 (#2484)

* Update sbt-github-actions to 0.18.0

* Regenerate GitHub Actions workflow

Executed command: sbt githubWorkflowGenerate

* Update netty-codec-http, ... to 4.1.100.Final (#2485)

* Generate readme

* OpenAPI gen support for all kinds of enums with(out) discriminators

OpenAPI gen support for default values, optional and transient fields

---------

Co-authored-by: TomTriple <[email protected]>
Co-authored-by: Jules Ivanic <[email protected]>
Co-authored-by: Scala Steward <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants