fix(specs): add missing redirect property to rule consequence schema#5934
fix(specs): add missing redirect property to rule consequence schema#5934
redirect property to rule consequence schema#5934Conversation
The `consequence` object in the Search API rules spec was missing the `redirect` property, which is used by "Redirect to Virtual Replica" rules. This caused all generated API clients to silently drop the redirect data during deserialization, producing empty consequences when round-tripping rules via SearchRules + SaveRules. CR-10356
✔️ Code generated!
📊 Benchmark resultsBenchmarks performed on the method using a mock server, the results might not reflect the real-world performance.
|
|
Thanks for drafting this up! But I'm confused given this feature has been working in beta for years. Was this property always missing here? How was this working before? |
| $ref: '../../../../common/parameters.yml#/objectID' | ||
| required: | ||
| - objectID | ||
| redirect: |
There was a problem hiding this comment.
lgtm. Something tells me you found the docs then.
There was a problem hiding this comment.
I inferred what I put in the update from the API response 😁
But I wanted validation because I wasn't sure if other params were required or not
Thanks for the doc link anyway, I'll merge this PR!
The |
#5934) (generated) [skip ci] Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
…a (generated) algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
🧭 What and Why
The
consequenceobject in the Search API rules spec was missing theredirectproperty, which is used by "Redirect to Virtual Replica" rules. This caused all generated API clients to silently drop the redirect data during deserialization, producing empty consequences when round-tripping rules via SearchRules + SaveRules.🎟 JIRA Ticket: CR-10356
Changes included: