Skip to content

Commit e8f4546

Browse files
algolia-botkai687shortcuts
committed
fix(specs): dictionary entry for stopwords has type property (generated)
algolia/api-clients-automation#3456 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 9547c9d commit e8f4546

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

algoliasearch/Models/Search/DictionaryEntry.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ public partial class DictionaryEntry
2828
/// </summary>
2929
[JsonPropertyName("state")]
3030
public DictionaryEntryState? State { get; set; }
31+
32+
/// <summary>
33+
/// Gets or Sets Type
34+
/// </summary>
35+
[JsonPropertyName("type")]
36+
public DictionaryEntryType? Type { get; set; }
3137
/// <summary>
3238
/// Initializes a new instance of the DictionaryEntry class.
3339
/// </summary>
@@ -94,6 +100,7 @@ public override string ToString()
94100
sb.Append(" Words: ").Append(Words).Append("\n");
95101
sb.Append(" Decomposition: ").Append(Decomposition).Append("\n");
96102
sb.Append(" State: ").Append(State).Append("\n");
103+
sb.Append(" Type: ").Append(Type).Append("\n");
97104
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
98105
sb.Append("}\n");
99106
return sb.ToString();
@@ -126,7 +133,8 @@ public override bool Equals(object obj)
126133
(Word == input.Word || (Word != null && Word.Equals(input.Word))) &&
127134
(Words == input.Words || Words != null && input.Words != null && Words.SequenceEqual(input.Words)) &&
128135
(Decomposition == input.Decomposition || Decomposition != null && input.Decomposition != null && Decomposition.SequenceEqual(input.Decomposition)) &&
129-
(State == input.State || State.Equals(input.State))
136+
(State == input.State || State.Equals(input.State)) &&
137+
(Type == input.Type || Type.Equals(input.Type))
130138
&& (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any());
131139
}
132140

@@ -157,6 +165,7 @@ public override int GetHashCode()
157165
hashCode = (hashCode * 59) + Decomposition.GetHashCode();
158166
}
159167
hashCode = (hashCode * 59) + State.GetHashCode();
168+
hashCode = (hashCode * 59) + Type.GetHashCode();
160169
if (AdditionalProperties != null)
161170
{
162171
hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
//
4+
using System;
5+
using System.Text;
6+
using System.Linq;
7+
using System.Text.Json.Serialization;
8+
using System.Collections.Generic;
9+
using Algolia.Search.Serializer;
10+
using System.Text.Json;
11+
12+
namespace Algolia.Search.Models.Search;
13+
14+
/// <summary>
15+
/// Whether a dictionary entry is provided by Algolia (standard), or has been added by you (custom).
16+
/// </summary>
17+
/// <value>Whether a dictionary entry is provided by Algolia (standard), or has been added by you (custom).</value>
18+
public enum DictionaryEntryType
19+
{
20+
/// <summary>
21+
/// Enum Custom for value: custom
22+
/// </summary>
23+
[JsonPropertyName("custom")]
24+
Custom = 1,
25+
26+
/// <summary>
27+
/// Enum Standard for value: standard
28+
/// </summary>
29+
[JsonPropertyName("standard")]
30+
Standard = 2
31+
}
32+

0 commit comments

Comments
 (0)