RedisJsonContext.cs•759 B
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Text.Json.Serialization;
using AzureMcp.Redis.Commands.CacheForRedis;
using AzureMcp.Redis.Commands.ManagedRedis;
namespace AzureMcp.Redis.Commands;
[JsonSerializable(typeof(CacheListCommand.CacheListCommandResult))]
[JsonSerializable(typeof(AccessPolicyListCommand.AccessPolicyListCommandResult))]
[JsonSerializable(typeof(ClusterListCommand.ClusterListCommandResult))]
[JsonSerializable(typeof(DatabaseListCommand.DatabaseListCommandResult))]
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault)]
internal sealed partial class RedisJsonContext : JsonSerializerContext;