Skip to content

Commit

Permalink
Update Membrane-core dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
charjr committed Apr 25, 2024
1 parent c30d259 commit 5aa08a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"illuminate/http": "^9.0 || ^10.0",
"illuminate/support": "^9.0 || ^10.0",
"nyholm/psr7": "^1.8",
"membrane/membrane": "dev-main",
"membrane/membrane": "^0.8",
"membrane/openapi-router": "^0.4.0",
"symfony/psr-http-message-bridge": "^2.1"
},
Expand Down
1 change: 0 additions & 1 deletion src/Middleware/RequestValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Membrane\Laravel\ApiProblemBuilder;
use Membrane\Laravel\ToPsr7;
use Membrane\Membrane;
use Membrane\OpenAPI\Exception\CannotProcessRequest;
use Membrane\OpenAPI\Exception\CannotProcessSpecification;
use Membrane\OpenAPI\Specification\Request as MembraneRequestSpec;
use Membrane\Result\Result;
Expand Down
8 changes: 7 additions & 1 deletion tests/Middleware/RequestValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ public function registersResultInstanceInContainer(): void
$expected = Result::valid([
'path' => [],
'query' => ['limit' => 5, 'tags' => ['cat', 'tabby']],
'header' => [],
'header' => [
'host' => ['localhost'],
'user-agent' => ['Symfony'],
'accept' => ['text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'],
'accept-language' => ['en-us,en;q=0.5'],
'accept-charset' => ['ISO-8859-1,utf-8;q=0.7,*;q=0.7'],
],
'cookie' => [],
'body' => '',
'request' => ['method' => 'get', 'operationId' => 'findPets'],
Expand Down

0 comments on commit 5aa08a0

Please sign in to comment.