proudmonkey / AutoWrapper

A simple, yet customizable global exception handler and Http response wrapper for ASP.NET Core APIs.
MIT License
679 stars 82 forks source link

UseCustomSchema & UseCamelCaseNamingStrategy together not working #125

Open myo-ko opened 2 years ago

myo-ko commented 2 years ago

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"
    }
}