AutoWrapper icon indicating copy to clipboard operation
AutoWrapper copied to clipboard

UseCustomSchema & UseCamelCaseNamingStrategy together not working

Open myo-ko opened this issue 3 years ago • 0 comments

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

myo-ko avatar Dec 11 '21 06:12 myo-ko