Skip to content

Commit

Permalink
fix(specs): add type: object to 3 schemas (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4392

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Kai Welke <[email protected]>
  • Loading branch information
algolia-bot and kai687 committed Jan 23, 2025
1 parent 5f0153c commit a6e9491
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Recommend/Models/TrendingFacets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import Foundation

public struct TrendingFacets: Codable, JSONEncodable {
/// Facet attribute for which to retrieve trending facet values.
public var facetName: AnyCodable?
public var facetName: String
public var model: TrendingFacetsModel
public var fallbackParameters: FallbackParams?

public init(facetName: AnyCodable?, model: TrendingFacetsModel, fallbackParameters: FallbackParams? = nil) {
public init(facetName: String, model: TrendingFacetsModel, fallbackParameters: FallbackParams? = nil) {
self.facetName = facetName
self.model = model
self.fallbackParameters = fallbackParameters
Expand Down
4 changes: 2 additions & 2 deletions Sources/Recommend/Models/TrendingFacetsQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public struct TrendingFacetsQuery: Codable, JSONEncodable {
public var maxRecommendations: Int?
public var queryParameters: RecommendSearchParams?
/// Facet attribute for which to retrieve trending facet values.
public var facetName: AnyCodable?
public var facetName: String
public var model: TrendingFacetsModel
public var fallbackParameters: FallbackParams?

Expand All @@ -26,7 +26,7 @@ public struct TrendingFacetsQuery: Codable, JSONEncodable {
threshold: Double,
maxRecommendations: Int? = nil,
queryParameters: RecommendSearchParams? = nil,
facetName: AnyCodable?,
facetName: String,
model: TrendingFacetsModel,
fallbackParameters: FallbackParams? = nil
) {
Expand Down

0 comments on commit a6e9491

Please sign in to comment.