-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(specs): ignorePlurals can be a boolean string (#3620) (generated)…
… [skip ci] Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
- Loading branch information
1 parent
e09849e
commit 07bbeee
Showing
272 changed files
with
1,991 additions
and
2,311 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/BooleanString.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// 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.Recommend; | ||
|
||
/// <summary> | ||
/// Defines booleanString | ||
/// </summary> | ||
public enum BooleanString | ||
{ | ||
/// <summary> | ||
/// Enum True for value: true | ||
/// </summary> | ||
[JsonPropertyName("true")] | ||
True = 1, | ||
|
||
/// <summary> | ||
/// Enum False for value: false | ||
/// </summary> | ||
[JsonPropertyName("false")] | ||
False = 2 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
clients/algoliasearch-client-csharp/algoliasearch/Models/Search/BooleanString.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// 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> | ||
/// Defines booleanString | ||
/// </summary> | ||
public enum BooleanString | ||
{ | ||
/// <summary> | ||
/// Enum True for value: true | ||
/// </summary> | ||
[JsonPropertyName("true")] | ||
True = 1, | ||
|
||
/// <summary> | ||
/// Enum False for value: false | ||
/// </summary> | ||
[JsonPropertyName("false")] | ||
False = 2 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/boolean_string.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// 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. | ||
// ignore_for_file: unused_element | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
@JsonEnum(valueField: 'raw') | ||
enum BooleanString { | ||
true_(r'true'), | ||
false_(r'false'); | ||
|
||
const BooleanString(this.raw); | ||
final dynamic raw; | ||
|
||
dynamic toJson() => raw; | ||
|
||
static BooleanString fromJson(dynamic json) { | ||
for (final value in values) { | ||
if (value.raw == json) return value; | ||
} | ||
throw ArgumentError.value(json, "raw", "No enum value with that value"); | ||
} | ||
|
||
@override | ||
String toString() => raw.toString(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...nts/algoliasearch-client-dart/packages/client_recommend/lib/src/model/boolean_string.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// 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. | ||
// ignore_for_file: unused_element | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
@JsonEnum(valueField: 'raw') | ||
enum BooleanString { | ||
true_(r'true'), | ||
false_(r'false'); | ||
|
||
const BooleanString(this.raw); | ||
final dynamic raw; | ||
|
||
dynamic toJson() => raw; | ||
|
||
static BooleanString fromJson(dynamic json) { | ||
for (final value in values) { | ||
if (value.raw == json) return value; | ||
} | ||
throw ArgumentError.value(json, "raw", "No enum value with that value"); | ||
} | ||
|
||
@override | ||
String toString() => raw.toString(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.