From ff718d8f4d7ef5aed8d42b9f236f987a750f18ca Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Tue, 28 May 2024 09:03:44 -0600 Subject: [PATCH] remove exemplar options default --- backend/MiniLcm/ILexboxApi.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/MiniLcm/ILexboxApi.cs b/backend/MiniLcm/ILexboxApi.cs index 55c4e393e..c322557dd 100644 --- a/backend/MiniLcm/ILexboxApi.cs +++ b/backend/MiniLcm/ILexboxApi.cs @@ -38,7 +38,6 @@ Task UpdateExampleSentence(Guid entryId, public record QueryOptions(SortOptions? Order = null, ExemplarOptions? Exemplar = null, int Count = 1000, int Offset = 0) { public static QueryOptions Default { get; } = new(); - public ExemplarOptions? Exemplar { get; init; } = Exemplar ?? ExemplarOptions.Default; public SortOptions Order { get; init; } = Order ?? SortOptions.Default; } @@ -47,10 +46,7 @@ public record SortOptions(SortField Field, WritingSystemId WritingSystem, bool A public static SortOptions Default { get; } = new(SortField.Headword, "default"); } -public record ExemplarOptions(string Value, WritingSystemId WritingSystem) -{ - public static ExemplarOptions Default { get; } = new("", "default"); -} +public record ExemplarOptions(string Value, WritingSystemId WritingSystem); [JsonConverter(typeof(JsonStringEnumConverter))] public enum SortField