Skip to content

Commit

Permalink
fix(specs): proper title with linter (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3444

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
algolia-bot and millotp committed Jul 30, 2024
1 parent 91b8080 commit 664f916
Show file tree
Hide file tree
Showing 49 changed files with 158 additions and 191 deletions.
4 changes: 2 additions & 2 deletions packages/algoliasearch/lib/algoliasearch_lite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export 'src/model/acl.dart';
export 'src/model/advanced_syntax_features.dart';
export 'src/model/alternatives_as_exact.dart';
export 'src/model/api_key.dart';
export 'src/model/around_precision_from_value_inner.dart';
export 'src/model/around_radius_all.dart';
export 'src/model/automatic_facet_filter.dart';
export 'src/model/base_get_api_key_response.dart';
Expand Down Expand Up @@ -53,6 +52,7 @@ export 'src/model/mode.dart';
export 'src/model/params.dart';
export 'src/model/personalization.dart';
export 'src/model/query_type.dart';
export 'src/model/range.dart';
export 'src/model/ranking_info.dart';
export 'src/model/recommend_hit.dart';
export 'src/model/recommendations_hits.dart';
Expand All @@ -61,8 +61,8 @@ export 'src/model/recommended_for_you.dart';
export 'src/model/recommended_for_you_model.dart';
export 'src/model/recommended_for_you_query.dart';
export 'src/model/redirect.dart';
export 'src/model/redirect_rule_index_data.dart';
export 'src/model/redirect_rule_index_metadata.dart';
export 'src/model/redirect_rule_index_metadata_data.dart';
export 'src/model/redirect_url.dart';
export 'src/model/related_model.dart';
export 'src/model/related_products.dart';
Expand Down
15 changes: 7 additions & 8 deletions packages/algoliasearch/lib/src/deserialize.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:algoliasearch/src/model/acl.dart';
import 'package:algoliasearch/src/model/advanced_syntax_features.dart';
import 'package:algoliasearch/src/model/alternatives_as_exact.dart';
import 'package:algoliasearch/src/model/api_key.dart';
import 'package:algoliasearch/src/model/around_precision_from_value_inner.dart';
import 'package:algoliasearch/src/model/around_radius_all.dart';
import 'package:algoliasearch/src/model/automatic_facet_filter.dart';
import 'package:algoliasearch/src/model/base_get_api_key_response.dart';
Expand Down Expand Up @@ -46,6 +45,7 @@ import 'package:algoliasearch/src/model/mode.dart';
import 'package:algoliasearch/src/model/params.dart';
import 'package:algoliasearch/src/model/personalization.dart';
import 'package:algoliasearch/src/model/query_type.dart';
import 'package:algoliasearch/src/model/range.dart';
import 'package:algoliasearch/src/model/ranking_info.dart';
import 'package:algoliasearch/src/model/recommend_hit.dart';
import 'package:algoliasearch/src/model/recommendations_hits.dart';
Expand All @@ -54,8 +54,8 @@ import 'package:algoliasearch/src/model/recommended_for_you.dart';
import 'package:algoliasearch/src/model/recommended_for_you_model.dart';
import 'package:algoliasearch/src/model/recommended_for_you_query.dart';
import 'package:algoliasearch/src/model/redirect.dart';
import 'package:algoliasearch/src/model/redirect_rule_index_data.dart';
import 'package:algoliasearch/src/model/redirect_rule_index_metadata.dart';
import 'package:algoliasearch/src/model/redirect_rule_index_metadata_data.dart';
import 'package:algoliasearch/src/model/redirect_url.dart';
import 'package:algoliasearch/src/model/related_model.dart';
import 'package:algoliasearch/src/model/related_products.dart';
Expand Down Expand Up @@ -121,9 +121,6 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
return AlternativesAsExact.fromJson(value) as ReturnType;
case 'ApiKey':
return ApiKey.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'AroundPrecisionFromValueInner':
return AroundPrecisionFromValueInner.fromJson(
value as Map<String, dynamic>) as ReturnType;
case 'AroundRadiusAll':
return AroundRadiusAll.fromJson(value) as ReturnType;
case 'AutomaticFacetFilter':
Expand Down Expand Up @@ -236,6 +233,8 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
as ReturnType;
case 'QueryType':
return QueryType.fromJson(value) as ReturnType;
case 'Range':
return Range.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'RankingInfo':
return RankingInfo.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'RecommendHit':
Expand All @@ -256,12 +255,12 @@ ReturnType deserialize<ReturnType, BaseType>(dynamic value, String targetType,
as ReturnType;
case 'Redirect':
return Redirect.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'RedirectRuleIndexData':
return RedirectRuleIndexData.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'RedirectRuleIndexMetadata':
return RedirectRuleIndexMetadata.fromJson(value as Map<String, dynamic>)
as ReturnType;
case 'RedirectRuleIndexMetadataData':
return RedirectRuleIndexMetadataData.fromJson(
value as Map<String, dynamic>) as ReturnType;
case 'RedirectURL':
return RedirectURL.fromJson(value as Map<String, dynamic>) as ReturnType;
case 'RelatedModel':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ final class BaseSearchParams {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ final class BaseSearchParamsWithoutQuery {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ final class BrowseParamsObject {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ final class ConsequenceParams {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
2 changes: 1 addition & 1 deletion packages/algoliasearch/lib/src/model/fallback_params.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ final class FallbackParams {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

import 'package:json_annotation/json_annotation.dart';

part 'around_precision_from_value_inner.g.dart';
part 'range.g.dart';

@JsonSerializable()
final class AroundPrecisionFromValueInner {
/// Returns a new [AroundPrecisionFromValueInner] instance.
const AroundPrecisionFromValueInner({
final class Range {
/// Returns a new [Range] instance.
const Range({
this.from,
this.value,
});
Expand All @@ -24,17 +24,14 @@ final class AroundPrecisionFromValueInner {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is AroundPrecisionFromValueInner &&
other.from == from &&
other.value == value;
other is Range && other.from == from && other.value == value;

@override
int get hashCode => from.hashCode + value.hashCode;

factory AroundPrecisionFromValueInner.fromJson(Map<String, dynamic> json) =>
_$AroundPrecisionFromValueInnerFromJson(json);
factory Range.fromJson(Map<String, dynamic> json) => _$RangeFromJson(json);

Map<String, dynamic> toJson() => _$AroundPrecisionFromValueInnerToJson(this);
Map<String, dynamic> toJson() => _$RangeToJson(this);

@override
String toString() {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

import 'package:json_annotation/json_annotation.dart';

part 'redirect_rule_index_metadata_data.g.dart';
part 'redirect_rule_index_data.g.dart';

@JsonSerializable()
final class RedirectRuleIndexMetadataData {
/// Returns a new [RedirectRuleIndexMetadataData] instance.
const RedirectRuleIndexMetadataData({
final class RedirectRuleIndexData {
/// Returns a new [RedirectRuleIndexData] instance.
const RedirectRuleIndexData({
required this.ruleObjectID,
});

Expand All @@ -18,16 +18,15 @@ final class RedirectRuleIndexMetadataData {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is RedirectRuleIndexMetadataData &&
other.ruleObjectID == ruleObjectID;
other is RedirectRuleIndexData && other.ruleObjectID == ruleObjectID;

@override
int get hashCode => ruleObjectID.hashCode;

factory RedirectRuleIndexMetadataData.fromJson(Map<String, dynamic> json) =>
_$RedirectRuleIndexMetadataDataFromJson(json);
factory RedirectRuleIndexData.fromJson(Map<String, dynamic> json) =>
_$RedirectRuleIndexDataFromJson(json);

Map<String, dynamic> toJson() => _$RedirectRuleIndexMetadataDataToJson(this);
Map<String, dynamic> toJson() => _$RedirectRuleIndexDataToJson(this);

@override
String toString() {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 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:algoliasearch/src/model/redirect_rule_index_metadata_data.dart';
import 'package:algoliasearch/src/model/redirect_rule_index_data.dart';

import 'package:json_annotation/json_annotation.dart';

Expand Down Expand Up @@ -34,7 +34,7 @@ final class RedirectRuleIndexMetadata {
final bool succeed;

@JsonKey(name: r'data')
final RedirectRuleIndexMetadataData data;
final RedirectRuleIndexData data;

@override
bool operator ==(Object other) =>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ final class SearchForFacets {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
2 changes: 1 addition & 1 deletion packages/algoliasearch/lib/src/model/search_for_hits.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ final class SearchForHits {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
2 changes: 1 addition & 1 deletion packages/algoliasearch/lib/src/model/search_params.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ final class SearchParams {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ final class SearchParamsObject {
final dynamic aroundRadius;

/// One of types:
/// - [List<AroundPrecisionFromValueInner>]
/// - [List<Range>]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
Expand Down
6 changes: 3 additions & 3 deletions packages/client_recommend/lib/algolia_client_recommend.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export 'src/api/recommend_client.dart';

export 'src/model/advanced_syntax_features.dart';
export 'src/model/alternatives_as_exact.dart';
export 'src/model/around_precision_from_value_inner.dart';
export 'src/model/around_radius_all.dart';
export 'src/model/auto_facet_filter.dart';
export 'src/model/base_recommend_request.dart';
Expand Down Expand Up @@ -43,25 +42,26 @@ export 'src/model/params_consequence.dart';
export 'src/model/personalization.dart';
export 'src/model/promote_consequence_object.dart';
export 'src/model/query_type.dart';
export 'src/model/range.dart';
export 'src/model/ranking_info.dart';
export 'src/model/recommend_hit.dart';
export 'src/model/recommend_models.dart';
export 'src/model/recommend_rule.dart';
export 'src/model/recommend_rule_metadata.dart';
export 'src/model/recommendations_hits.dart';
export 'src/model/recommendations_results.dart';
export 'src/model/recommended_for_you.dart';
export 'src/model/recommended_for_you_model.dart';
export 'src/model/recommended_for_you_query.dart';
export 'src/model/redirect.dart';
export 'src/model/redirect_rule_index_data.dart';
export 'src/model/redirect_rule_index_metadata.dart';
export 'src/model/redirect_rule_index_metadata_data.dart';
export 'src/model/redirect_url.dart';
export 'src/model/related_model.dart';
export 'src/model/related_products.dart';
export 'src/model/related_query.dart';
export 'src/model/remove_words_if_no_results.dart';
export 'src/model/rendering_content.dart';
export 'src/model/rule_metadata.dart';
export 'src/model/search_pagination.dart';
export 'src/model/search_params.dart';
export 'src/model/search_params_object.dart';
Expand Down
Loading

0 comments on commit 664f916

Please sign in to comment.