Open makten opened 1 month ago
Is there a way to automatically add "FromHeader" attribute to generated C# objects using a .nswag file? I have added the following to my .nswag file with no success:
..... "codeGenerators": { "openApiToCSharpController": { "operationProcessors": [ { "type": "MyNamespace.AddHeaderParameterOperationProcessor, MyAssembly" } ] .....
The AddHeaderParameterOperationProcessor class contains the required logic, but this doesn't seem to do anything.
Is there a way to automatically add "FromHeader" attribute to generated C# objects using a .nswag file? I have added the following to my .nswag file with no success:
The AddHeaderParameterOperationProcessor class contains the required logic, but this doesn't seem to do anything.