Skip to content

Commit 105fb67

Browse files
fix(csharp): remove global enum converter (generated)
algolia/api-clients-automation#3765 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Morgan Leroi <[email protected]>
1 parent b286c85 commit 105fb67

File tree

104 files changed

+103
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+103
-1
lines changed

algoliasearch/Models/Abtesting/Effect.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Abtesting;
1515
/// Metric for which you want to detect the smallest relative difference.
1616
/// </summary>
1717
/// <value>Metric for which you want to detect the smallest relative difference.</value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Effect>))]
1819
public enum Effect
1920
{
2021
/// <summary>

algoliasearch/Models/Abtesting/Status.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Abtesting;
1515
/// A/B test status. - `active`. The A/B test is live and search traffic is split between the two variants. - `stopped`. You stopped the A/B test. The A/B test data is still available for analysis. - `expired`. The A/B test was automatically stopped after reaching its end date. - `failed`. Creating the A/B test failed.
1616
/// </summary>
1717
/// <value>A/B test status. - `active`. The A/B test is live and search traffic is split between the two variants. - `stopped`. You stopped the A/B test. The A/B test data is still available for analysis. - `expired`. The A/B test was automatically stopped after reaching its end date. - `failed`. Creating the A/B test failed. </value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Status>))]
1819
public enum Status
1920
{
2021
/// <summary>

algoliasearch/Models/Analytics/Direction.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Analytics;
1414
/// <summary>
1515
/// Defines direction
1616
/// </summary>
17+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Direction>))]
1718
public enum Direction
1819
{
1920
/// <summary>

algoliasearch/Models/Analytics/Operator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Analytics;
1515
/// Character that characterizes how the filter is applied. For example, for a facet filter `facet:value`, `:` is the operator. For a numeric filter `count>50`, `>` is the operator.
1616
/// </summary>
1717
/// <value>Character that characterizes how the filter is applied. For example, for a facet filter `facet:value`, `:` is the operator. For a numeric filter `count>50`, `>` is the operator. </value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Operator>))]
1819
public enum Operator
1920
{
2021
/// <summary>

algoliasearch/Models/Analytics/OrderBy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Analytics;
1515
/// Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
1616
/// </summary>
1717
/// <value>Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available. </value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<OrderBy>))]
1819
public enum OrderBy
1920
{
2021
/// <summary>

algoliasearch/Models/Ingestion/Action.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
1515
/// Type of indexing operation.
1616
/// </summary>
1717
/// <value>Type of indexing operation.</value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Action>))]
1819
public enum Action
1920
{
2021
/// <summary>

algoliasearch/Models/Ingestion/ActionType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
1515
/// Action to perform on the Algolia index.
1616
/// </summary>
1717
/// <value>Action to perform on the Algolia index.</value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<ActionType>))]
1819
public enum ActionType
1920
{
2021
/// <summary>

algoliasearch/Models/Ingestion/AuthenticationSortKeys.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
1515
/// Property by which to sort the list of authentication resources.
1616
/// </summary>
1717
/// <value>Property by which to sort the list of authentication resources.</value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<AuthenticationSortKeys>))]
1819
public enum AuthenticationSortKeys
1920
{
2021
/// <summary>

algoliasearch/Models/Ingestion/AuthenticationType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
1515
/// Type of authentication. This determines the type of credentials required in the `input` object.
1616
/// </summary>
1717
/// <value>Type of authentication. This determines the type of credentials required in the `input` object.</value>
18+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<AuthenticationType>))]
1819
public enum AuthenticationType
1920
{
2021
/// <summary>

algoliasearch/Models/Ingestion/BigQueryDataType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Ingestion;
1414
/// <summary>
1515
/// Defines BigQueryDataType
1616
/// </summary>
17+
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<BigQueryDataType>))]
1718
public enum BigQueryDataType
1819
{
1920
/// <summary>

0 commit comments

Comments
 (0)