Skip to content

Commit

Permalink
fix(specs): dictionary entry for stopwords has type property (generated)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people committed Aug 5, 2024
1 parent 9547c9d commit e8f4546
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
11 changes: 10 additions & 1 deletion algoliasearch/Models/Search/DictionaryEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public partial class DictionaryEntry
/// </summary>
[JsonPropertyName("state")]
public DictionaryEntryState? State { get; set; }

/// <summary>
/// Gets or Sets Type
/// </summary>
[JsonPropertyName("type")]
public DictionaryEntryType? Type { get; set; }
/// <summary>
/// Initializes a new instance of the DictionaryEntry class.
/// </summary>
Expand Down Expand Up @@ -94,6 +100,7 @@ public override string ToString()
sb.Append(" Words: ").Append(Words).Append("\n");
sb.Append(" Decomposition: ").Append(Decomposition).Append("\n");
sb.Append(" State: ").Append(State).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -126,7 +133,8 @@ public override bool Equals(object obj)
(Word == input.Word || (Word != null && Word.Equals(input.Word))) &&
(Words == input.Words || Words != null && input.Words != null && Words.SequenceEqual(input.Words)) &&
(Decomposition == input.Decomposition || Decomposition != null && input.Decomposition != null && Decomposition.SequenceEqual(input.Decomposition)) &&
(State == input.State || State.Equals(input.State))
(State == input.State || State.Equals(input.State)) &&
(Type == input.Type || Type.Equals(input.Type))
&& (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any());
}

Expand Down Expand Up @@ -157,6 +165,7 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + Decomposition.GetHashCode();
}
hashCode = (hashCode * 59) + State.GetHashCode();
hashCode = (hashCode * 59) + Type.GetHashCode();
if (AdditionalProperties != null)
{
hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
Expand Down
32 changes: 32 additions & 0 deletions algoliasearch/Models/Search/DictionaryEntryType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// 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.
//
using System;
using System.Text;
using System.Linq;
using System.Text.Json.Serialization;
using System.Collections.Generic;
using Algolia.Search.Serializer;
using System.Text.Json;

namespace Algolia.Search.Models.Search;

/// <summary>
/// Whether a dictionary entry is provided by Algolia (standard), or has been added by you (custom).
/// </summary>
/// <value>Whether a dictionary entry is provided by Algolia (standard), or has been added by you (custom).</value>
public enum DictionaryEntryType
{
/// <summary>
/// Enum Custom for value: custom
/// </summary>
[JsonPropertyName("custom")]
Custom = 1,

/// <summary>
/// Enum Standard for value: standard
/// </summary>
[JsonPropertyName("standard")]
Standard = 2
}

0 comments on commit e8f4546

Please sign in to comment.