Skip to content

Commit b06ff97

Browse files
committed
fix:tests
1 parent a997c5d commit b06ff97

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/Services/SwaggerService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,8 @@ protected function prepareInfo(?string $view = null, array $viewData = [], array
973973
if (!empty($view)) {
974974
$info['description'] = view($view, $viewData)->render();
975975
}
976-
977-
return array_merge(Arr::except($this->config['info'], ['description', 'license']), $info);
976+
977+
return array_merge($this->config['info'], $info);
978978
}
979979

980980
protected function getOpenAPIFileContent(string $filePath): array

tests/fixtures/SwaggerServiceTest/tmp_data_request_with_empty_data_jwt.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
"termsOfService": "",
1717
"contact": {
1818
"email": "your@mail.com"
19+
},
20+
"license": {
21+
"name": "",
22+
"url": ""
1923
}
2024
},
2125
"securityDefinitions": {

tests/fixtures/SwaggerServiceTest/tmp_data_request_with_empty_data_laravel.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
"termsOfService": "",
1717
"contact": {
1818
"email": "your@mail.com"
19+
},
20+
"license": {
21+
"name": "",
22+
"url": ""
1923
}
2024
},
2125
"securityDefinitions": {

tests/fixtures/SwaggerServiceTest/tmp_data_request_with_empty_data_query.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
"termsOfService": "",
1717
"contact": {
1818
"email": "your@mail.com"
19+
},
20+
"license": {
21+
"name": "",
22+
"url": ""
1923
}
2024
},
2125
"securityDefinitions": {

0 commit comments

Comments
 (0)