diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-30 04:00:45 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-13 03:33:37 +1000 |
| commit | f3400e6889bd2261d91b244eeefc1fae16d956f2 (patch) | |
| tree | 979b2524da21d6e269199a024378ab583d3af8b0 | |
| parent | cbcfe6c2e5ed5f774b7bc13f305037b5e3de29e2 (diff) | |
Added tag source to API tag modeldev
| -rw-r--r-- | ApiModels.cs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/ApiModels.cs b/ApiModels.cs index 534f46b..6ac744e 100644 --- a/ApiModels.cs +++ b/ApiModels.cs @@ -7,6 +7,11 @@ public enum PathType { Unix } +public enum TagSource { + Internal = 0, + UserTag = 1 +} + public record Media { public Guid MediaId { get; init; } public string? ShortDescription { get; init; } @@ -33,11 +38,13 @@ public record UploadedFile { } public record TagDefinition { - public Guid TagDefinitionId { get; init; } - public string? Namespace { get; init; } - public string Name { get; init; } - public string? Alias { get; init; } - public Guid[] ImplicitTags { get; init; } + public Guid TagDefinitionId { get; init; } + [JsonConverter(typeof(JsonStringEnumConverter))] + public TagSource Source { get; init; } + public string? Namespace { get; init; } + public string Name { get; init; } + public string? Alias { get; init; } + public Guid[] ImplicitTags { get; init; } } public record User { |
