Skip to content

Cannot use "useHttpAttributeNameAsOperationId" after migration to NSwag 14 #4695

Closed Answered by krzyhan
alex1ozr asked this question in Q&A
Discussion options

You must be logged in to vote

This occurs as I guess there is no property in command anymore.
https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs

SImilar to eq. ApiGroupNames - you can define it in your code

 services.AddOpenApiDocument(document =>
 {
     document.UseHttpAttributeNameAsOperationId = true;
 });

#4524

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alex1ozr
Comment options

Answer selected by alex1ozr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants