From e178452b518211471edd78a15f45012984da236b Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Wed, 31 Jan 2024 14:30:33 -0500 Subject: [PATCH] Add info.title/description --- config/openapi.json | 9 +++------ lib/manageiq/api/open_api/generator.rb | 8 +++++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/config/openapi.json b/config/openapi.json index e96d304206..7e88481989 100644 --- a/config/openapi.json +++ b/config/openapi.json @@ -1,15 +1,12 @@ { "openapi": "3.0.0", "info": { + "version": "4.4.0-pre", + "title": "API", + "description": "REST API" }, - "security": [ - - ], "paths": { }, - "servers": [ - - ], "components": { "parameters": { }, diff --git a/lib/manageiq/api/open_api/generator.rb b/lib/manageiq/api/open_api/generator.rb index c32462cd79..eb22324ed9 100644 --- a/lib/manageiq/api/open_api/generator.rb +++ b/lib/manageiq/api/open_api/generator.rb @@ -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" => {}