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

Use Swagger UI >= 4.1.3 due to CVE-2021-46708 #547

Merged
merged 2 commits into from
Jun 5, 2023
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"php": "^7.2 || ^8.0",
"laravel/framework": "^10.0 || ^9.0 || >=8.40.0 || ^7.0",
"zircote/swagger-php": "^3.2.0 || ^4.0.0",
"swagger-api/swagger-ui": "^3.0 || ^4.0",
"swagger-api/swagger-ui": "^3.0 || >=4.1.3",
"symfony/yaml": "^5.0 || ^6.0",
"ext-json": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/SwaggerAssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function index(Request $request)
$fileSystem->get($path),
200,
[
'Content-Type' => (pathinfo($asset))['extension'] == 'css'
'Content-Type' => pathinfo($asset)['extension'] == 'css'
? 'text/css'
: 'application/javascript',
]
Expand Down
1 change: 1 addition & 0 deletions tests/ConfigFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function itThrowsExceptionIfDocumentationConfigNotFound(): void

/**
* @test
*
* @dataProvider configDataProvider
*
* @param array $data
Expand Down
1 change: 1 addition & 0 deletions tests/ConsoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ConsoleTest extends TestCase
{
/**
* @test
*
* @dataProvider provideGenerateCommands
*
* @param string $artisanCommand
Expand Down
1 change: 1 addition & 0 deletions tests/SecurityDefinitionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function itWillNotAddEmptySecurityItems(): void

/**
* @test
*
* @dataProvider provideConfigAndSchemes
*
* @param array $securitySchemes
Expand Down