AutoWrapper
AutoWrapper copied to clipboard
UseCustomSchema & UseCamelCaseNamingStrategy together not working
I would like to use custom response class with PascalCase naming like the followin options. But it is not working.
app.UseApiResponseAndExceptionWrapper(new AutoWrapperOptions
{
UseCamelCaseNamingStrategy = false,
UseCustomSchema = true,
IsApiOnly = false,
});
Output:
{
"statusCode": 200,
"message": "Success",
"data": {
"id": 1,
"description": "My description"
}
}