--document-name flag not being respected when generating open api documents at build time. #59097
Labels
area-commandlinetools
Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI
feature-openapi
I was trying to follow the example in this guide on learn for generating documents at build time. It indicates there that you can use the --document-name flag to only generate the document matching the given name. However, I noticed that no matter what value I passed, all of my documents were being generated.
I dug into the code and found the lines where this flag was being consumed. I even saw a comment indicating "If an explicit document name is provided, then generate only that document.". Notably though, I didn't see any code that actually did this restriction prior to the logic iterating over all documents and generating them.
aspnetcore/src/Tools/GetDocumentInsider/src/Commands/GetDocumentCommandWorker.cs
Lines 257 to 297 in 8d0f798
The text was updated successfully, but these errors were encountered: