mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Ensure metadata enums get serialized as strings.
This commit is contained in:
@@ -40,9 +40,11 @@
|
||||
// ReSharper disable ClassNeverInstantiated.Global
|
||||
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Aaru.CommonTypes.AaruMetadata;
|
||||
|
||||
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
|
||||
public enum BarcodeType
|
||||
{
|
||||
Aztec, Codabar, Code11,
|
||||
|
||||
Reference in New Issue
Block a user