C# Api Client generation: how to ignore a controller from external source? #4628
Answered
by
ogulcanturan
ImreMedgyesi
asked this question in
Q&A
-
Hi, I am using NSwag to generate C# Api client (.net 7.0). Is there a way to exclude a controller from the generated client only? The controller itself is defined in an external library and the swagger.json file should contain all the controllers. |
Beta Was this translation helpful? Give feedback.
Answered by
ogulcanturan
Aug 22, 2024
Replies: 1 comment
-
Hey @ImreMedgyesi , you can hide external libraries controllers using Conventions - whether only one controller or whole assembly ControllerHideFromExploringConvention copy this class, Extensions
Registration
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ImreMedgyesi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ImreMedgyesi , you can hide external libraries controllers using Conventions - whether only one controller or whole assembly
ControllerHideFromExploringConvention copy this class,
Extensions