Sorry, I probably wasn’t specific enough/very clear in what I was asking. ReDoc has a set of vendor extensions to the open api 2.0 spec. For example they have a property in the info JSON which is x-logo
. Is there a way I can add this to the JSON returned from the ~/openapi endpoint?
For example:
{
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"x-logo": {
"url": "https://rebilly.github.io/ReDoc/petstore-logo.png",
"backgroundColor": "#FFFFFF"
}
}
}
I can’t just add the property in the ApiDeclarationFilter
because I can’t add the property to the OpenApiInfo
class without creating a custom build. There are other extensions listed here if that helps clarify: https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md
Edit - I’m not asking for added support - I’m looking for whether I can manipulate the openapi response outside of the rigid class structure used in the plug-in, more something like a Json Object before it’s returned to the caller.