Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to specify custom OpenAPI output file name like Swashbuckle.AspNetCore.Cli #56973

Open
1 task done
MauriceChocoSwiss opened this issue Jul 24, 2024 · 0 comments · May be fixed by #56974
Open
1 task done

Comments

@MauriceChocoSwiss
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

With the incomming removal of Swashbuckle from .NET in 9 version, I've start using the Microsoft.AspNetCore.OpenApi package for a new project.

But when It comes to swagger.json generation, the file generated has a specific name (ProjectName.json if openapi document name is v1(default) or ProjectName_documentName.json if specific openapi document name is set).

In my previous projects or at work, I use Swashbuckle.AspNetCore.Cli to generate the json file. In the parameters we can specify a output file name via a complete path including filename we want.
But with OpenAPI, it doesn't work.

Describe the solution you'd like

Un specific parameter to set a custom output file name.

PS: regarless this issue, the documentation on how to use it or generate the file, options and so are very light... If it will be the new recommended option, it will need more documentation !

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant