From e8f45461efaac9970531ef9791b48b229003044d Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Mon, 5 Aug 2024 08:45:10 +0000 Subject: [PATCH] fix(specs): dictionary entry for stopwords has type property (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/3456 Co-authored-by: algolia-bot Co-authored-by: Kai Welke Co-authored-by: Clément Vannicatte --- .../Models/Search/DictionaryEntry.cs | 11 ++++++- .../Models/Search/DictionaryEntryType.cs | 32 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 algoliasearch/Models/Search/DictionaryEntryType.cs diff --git a/algoliasearch/Models/Search/DictionaryEntry.cs b/algoliasearch/Models/Search/DictionaryEntry.cs index 6800f2458..97de09af9 100644 --- a/algoliasearch/Models/Search/DictionaryEntry.cs +++ b/algoliasearch/Models/Search/DictionaryEntry.cs @@ -28,6 +28,12 @@ public partial class DictionaryEntry /// [JsonPropertyName("state")] public DictionaryEntryState? State { get; set; } + + /// + /// Gets or Sets Type + /// + [JsonPropertyName("type")] + public DictionaryEntryType? Type { get; set; } /// /// Initializes a new instance of the DictionaryEntry class. /// @@ -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(); @@ -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()); } @@ -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(); diff --git a/algoliasearch/Models/Search/DictionaryEntryType.cs b/algoliasearch/Models/Search/DictionaryEntryType.cs new file mode 100644 index 000000000..ae8b0a3ff --- /dev/null +++ b/algoliasearch/Models/Search/DictionaryEntryType.cs @@ -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; + +/// +/// Whether a dictionary entry is provided by Algolia (standard), or has been added by you (custom). +/// +/// Whether a dictionary entry is provided by Algolia (standard), or has been added by you (custom). +public enum DictionaryEntryType +{ + /// + /// Enum Custom for value: custom + /// + [JsonPropertyName("custom")] + Custom = 1, + + /// + /// Enum Standard for value: standard + /// + [JsonPropertyName("standard")] + Standard = 2 +} +