Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(specs): make hits required, facets count as an integer, searchParams as optional #868

Merged
merged 6 commits into from
Jul 27, 2022

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Jul 26, 2022

🧭 What and Why

🎟 JIRA Ticket:

Changes included:

  • The required field for hits was at the wrong spot
    • hits is required in a SearchResponse, but also a RecommendationsResponse
  • The facets returned are a Record<string, Record<string, number>>
  • All parameters of searchParams are optional, therefore we don't need to make it required.

🧪 Test

CI :D

@shortcuts shortcuts self-assigned this Jul 26, 2022
@netlify
Copy link

netlify bot commented Jul 26, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 07939e5
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62e0eefc68c70600080eb3b9

@shortcuts shortcuts changed the title fix(specs): make hits required fix(specs): make hits required, correct type for facets Jul 26, 2022
@shortcuts shortcuts enabled auto-merge (squash) July 26, 2022 13:36
@algolia-bot
Copy link
Collaborator

algolia-bot commented Jul 26, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

bodinsamuel
bodinsamuel previously approved these changes Jul 26, 2022
@shortcuts shortcuts disabled auto-merge July 26, 2022 13:45
@shortcuts shortcuts changed the title fix(specs): make hits required, correct type for facets fix(specs): make hits required, facets count as an integer, searchParams as optional Jul 27, 2022
@shortcuts shortcuts merged commit 6bdc94f into main Jul 27, 2022
@shortcuts shortcuts deleted the fix/specs-hits branch July 27, 2022 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants