Jonathan Channon
Jonathan Channon
Try here - https://github.com/CarterCommunity/Carter/blob/main/samples/CarterSample/Features/Actors/ActorsModule.cs#L12 On Tue, 13 Jun 2023 at 13:51, obiiswise ***@***.***> wrote: > Hi! > > Do you have any sample code using the .WithOpenApi on endpoints like...
Create your own IResponseNegotiator with the settings you want, Carter will register it in DI automatically https://github.com/CarterCommunity/Carter/blob/main/src/Carter/Response/DefaultJsonResponseNegotiator.cs On Fri, 8 Dec 2023 at 09:17, Nate Ford ***@***.***> wrote: > when...
You could also define json serializer options using the below, either approaches will work ``` x.ConfigureHttpJsonOptions(jsonOptions => { jsonOptions.SerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.KebabCaseUpper; }); ```
Hi I think at this stage it's down to you the user to decide if you want to continue. As you say MS keeps adding stuff to MinimalAPI that Carter/Nancy...
Must be a bug in aspnet core or in swagger ui. Carter simply calls the aspnet core OpenAPI methods
Does IncludeInOpenApi() work? On Wed, 19 Apr 2023 at 17:58, Christopher Leigh ***@***.***> wrote: > Add .WithOpenApi() to the group. > > — > Reply to this email directly, view...
Hi, thanks for raising this! Would you be able to send a PR to correct this oversight? Cheers!
In a constructor of your module you can do something like this ```csharp this.Before = context => { var logger = context.HttpContext.RequestServices.GetRequiredService(); logger.LogDebug("Before"); return null; }; this.After = context =>...
I can't reproduce this. If you run the CarterSample app you'll see CastMembers doesn't appear in SwaggerUI. Once you add `IncludeInOpenApi` they appear. If you'd like to push up a...
Also just started getting this error in the last week. Has to disable our tests to get CI running which is not ideal. This using .NET7 on Linux Gitlab runners