Skip to content

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

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

Closed
1 task done
MauriceChocoSwiss opened this issue Jul 24, 2024 · 0 comments · Fixed by #56974
Closed
1 task done
Labels
old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Comments

@MauriceChocoSwiss
Copy link
Contributor

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

@ghost ghost added the old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant