Skip to content

Commit cb8baae

Browse files
committed
Fix
1 parent 15119e1 commit cb8baae

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/api/Elastic.Documentation.Api.Infrastructure/Aws/LambdaExtensionParameterProvider.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@ public async Task<string> GetParam(string name, bool withDecryption = true, Canc
4444

4545
internal sealed class ParameterResponse
4646
{
47-
public Parameter? Parameter { get; set; }
47+
public required Parameter Parameter { get; set; }
4848
}
4949

5050
internal sealed class Parameter
5151
{
5252
[JsonPropertyName("ARN")]
53-
public string? Arn { get; set; }
54-
public string? Name { get; set; }
55-
public string? Type { get; set; }
56-
public string? Value { get; set; }
57-
public string? Version { get; set; }
53+
public required string Arn { get; set; }
54+
public required string Name { get; set; }
55+
public required string Type { get; set; }
56+
public required string Value { get; set; }
57+
public required int Version { get; set; }
5858
public string? Selector { get; set; }
59-
public string? LastModifiedDate { get; set; }
60-
public string? LastModifiedUser { get; set; }
61-
public string? DataType { get; set; }
59+
public DateTime LastModifiedDate { get; set; }
60+
public required string DataType { get; set; }
6261
}
6362

6463

6564
[JsonSerializable(typeof(ParameterResponse))]
65+
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.Unspecified)]
6666
internal sealed partial class AwsJsonContext : JsonSerializerContext;

0 commit comments

Comments
 (0)