File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 56
56
'open_api ' => [
57
57
// default version that this library provides
58
58
'version ' => '3.0.0 ' ,
59
- // changeable
59
+ // api document title
60
+ 'document_title ' => 'Laravel Request ' ,
61
+ // api document description
62
+ 'document_description ' => 'Laravel Request ' ,
63
+ //api document version
60
64
'document_version ' => '1.0.0 ' ,
61
65
// license that you want to display
62
66
'license ' => 'Apache 2.0 ' ,
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ public function openApi(array $docs): LaravelRequestDocsToOpenApi
14
14
{
15
15
$ this ->openApi ['openapi ' ] = config ('request-docs.open_api.version ' , '3.0.0 ' );
16
16
$ this ->openApi ['info ' ]['version ' ] = config ('request-docs.open_api.document_version ' , '1.0.0 ' );
17
- $ this ->openApi ['info ' ]['title ' ] = " Laravel Request Docs " ;
18
- $ this ->openApi ['info ' ]['description ' ] = " Laravel Request Docs " ;
17
+ $ this ->openApi ['info ' ]['title ' ] = config ( ' request-docs.open_api.document_title ' , ' Laravel Request Docs ' ) ;
18
+ $ this ->openApi ['info ' ]['description ' ] = config ( ' request-docs.open_api.document_description ' , ' Laravel Request Docs ' ) ;
19
19
$ this ->openApi ['info ' ]['license ' ]['name ' ] = config ('request-docs.open_api.license ' , 'Apache 2.0 ' );
20
20
$ this ->openApi ['info ' ]['license ' ]['url ' ] = config ('request-docs.open_api.license_url ' , 'https://www.apache.org/licenses/LICENSE-2.0.html ' );
21
21
$ this ->openApi ['servers ' ][] = [
You can’t perform that action at this time.
0 commit comments