Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseCustomSchema & UseCamelCaseNamingStrategy together not working #125

Open
myo-ko opened this issue Dec 11, 2021 · 0 comments
Open

UseCustomSchema & UseCamelCaseNamingStrategy together not working #125

myo-ko opened this issue Dec 11, 2021 · 0 comments

Comments

@myo-ko
Copy link

myo-ko commented Dec 11, 2021

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"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant