-
Notifications
You must be signed in to change notification settings - Fork 411
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
jdegoes
merged 5 commits into
zio:main
from
guizmaii:context_provider_middleware_with_routes
Oct 18, 2023
Merged
Add a test of a middleware providing a context to a Routes
#2487
jdegoes
merged 5 commits into
zio:main
from
guizmaii:context_provider_middleware_with_routes
Oct 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guizmaii
commented
Oct 18, 2023
zio-http/src/test/scala/zio/http/internal/middlewares/AuthSpec.scala
Outdated
Show resolved
Hide resolved
…ith_routes Add a test of a middleware providing a context to a `Routes`
guizmaii
requested review from
amitksingh1490,
jdegoes,
vigoo and
adamgfraser
as code owners
October 18, 2023 14:11
Codecov ReportAll modified lines are covered by tests ✅
❗ 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 ☔ View full report in Codecov by Sentry. |
jdegoes
approved these changes
Oct 18, 2023
987Nabil
pushed a commit
to 987Nabil/zio-http
that referenced
this pull request
Oct 24, 2023
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It gives an example on how to use a "providing middleware" when using
Routes
I struggled to find how