Skip to content

Commit

Permalink
Add info.title/description
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jan 31, 2024
1 parent f61c491 commit e178452
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 3 additions & 6 deletions config/openapi.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"openapi": "3.0.0",
"info": {
"version": "4.4.0-pre",
"title": "API",
"description": "REST API"
},
"security": [

],
"paths": {
},
"servers": [

],
"components": {
"parameters": {
},
Expand Down
8 changes: 5 additions & 3 deletions lib/manageiq/api/open_api/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ def schemas
def skeletal_openapi_spec
{
"openapi" => OPENAPI_VERSION,
"info" => {},
"security" => [],
"info" => {
"version" => api_version,
"title" => ::Api::ApiConfig.base.name,
"description" => ::Api::ApiConfig.base.description
},
"paths" => {},
"servers" => [],
"components" => {
"parameters" => {},
"schemas" => {}
Expand Down

0 comments on commit e178452

Please sign in to comment.