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