Skip to content

Commit

Permalink
fix(specs): required prop for dictionaryEntry (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3449

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
3 people committed Jul 30, 2024
1 parent 664f916 commit 8ec44fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/client_search/lib/src/model/dictionary_entry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class DictionaryEntry extends DelegatingMap<String, dynamic> {
/// Returns a new [DictionaryEntry] instance.
const DictionaryEntry({
required this.objectID,
required this.language,
this.language,
this.word,
this.words,
this.decomposition,
Expand All @@ -26,7 +26,7 @@ final class DictionaryEntry extends DelegatingMap<String, dynamic> {
final String objectID;

@JsonKey(name: r'language')
final SupportedLanguage language;
final SupportedLanguage? language;

/// Matching dictionary word for `stopwords` and `compounds` dictionaries.
@JsonKey(name: r'word')
Expand Down
6 changes: 3 additions & 3 deletions packages/client_search/lib/src/model/dictionary_entry.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ec44fa

Please sign in to comment.