CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Version hardcoded in SwaggerUI to 3.0.0

aespinoza opened this issue · comments

Is there a a reason why the API version is hard coded to 3.0.0 ?

The line I am referring is this:

var document = CreateDocument(options, "3.0.0");

It is my understanding that this version is the API version not the OpenAPI Spec Version.

The interesting line is:

Version = version,

That should be setting the openapi property at the document level, which doesn't seem to exist on the type.

Thank you man. I was going to fix it, but I wanted to make sure I understood the issue before committing any changes.

@aespinoza thanks for spotting this! 👍