Skip to content

Commit

Permalink
remove exemplar options default
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed May 28, 2024
1 parent 9d61373 commit ff718d8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/MiniLcm/ILexboxApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Task<ExampleSentence> 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;
}

Expand All @@ -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
Expand Down

0 comments on commit ff718d8

Please sign in to comment.