Skip to content

Commit 1e9cdc6

Browse files
committed
test
1 parent e571474 commit 1e9cdc6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/Elastic.Documentation.Api.Core/SerializationContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ namespace Elastic.Documentation.Api.Core;
99

1010

1111
[JsonSerializable(typeof(AskAiRequest))]
12-
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)]
1312
public partial class ApiJsonContext : JsonSerializerContext;

src/api/Elastic.Documentation.Api.Lambda/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Text.Json.Serialization;
66
using Amazon.Lambda.APIGatewayEvents;
77
using Amazon.Lambda.Serialization.SystemTextJson;
8+
using Elastic.Documentation.Api.Core;
89
using Elastic.Documentation.Api.Infrastructure;
910

1011
var builder = WebApplication.CreateSlimBuilder(args);
@@ -19,6 +20,6 @@
1920

2021
app.Run();
2122

22-
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyRequest), GenerationMode = JsonSourceGenerationMode.Metadata)]
23-
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyResponse), GenerationMode = JsonSourceGenerationMode.Default)]
24-
internal sealed partial class LambdaJsonSerializerContext : JsonSerializerContext;
23+
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyRequest))]
24+
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyResponse))]
25+
internal sealed partial class LambdaJsonSerializerContext : ApiJsonContext;

0 commit comments

Comments
 (0)