Details

Serialize Enum as String

Return enums as their string value

builder.Services.AddControllers()
   .AddJsonOptions(options =>
   {
       options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
   });

Enums are still saved as their integer representation in the database.