Skip to content

Commit

Permalink
feat(specs): add redirect to renderingContent (#3296)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jul 1, 2024
1 parent 0ce7f8a commit 9776cb3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public class AlgoliaSwiftGenerator extends Swift5ClientCodegen {
"redirect",
"redirectruleindexmetadata",
"redirectruleindexmetadatadata",
"redirecturl",
"region",
"removestopwords",
"removewordsifnoresults",
Expand Down
10 changes: 10 additions & 0 deletions specs/common/schemas/IndexSettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -995,9 +995,19 @@ renderingContent:
properties:
facetOrdering:
$ref: '#/facetOrdering'
redirect:
$ref: '#/redirectURL'
x-categories:
- Advanced

redirectURL:
description: The redirect rule container.
type: object
additionalProperties: false
properties:
url:
type: string

facetOrdering:
description: Order of facet names and facet values in your UI.
type: object
Expand Down
2 changes: 1 addition & 1 deletion specs/search/common/schemas/SearchResponse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ baseSearchResponse:
title: redirect
type: object
description: |
[Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
[Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/), this this parameter is for internal use only.
properties:
index:
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import {
Redirect,
RedirectRuleIndexMetadata,
RedirectRuleIndexMetadataData,
RedirectURL,
RemoveStopWords,
RemoveWordsIfNoResults,
RenderingContent,
Expand Down Expand Up @@ -143,6 +144,7 @@ export {
Redirect,
RedirectRuleIndexMetadata,
RedirectRuleIndexMetadataData,
RedirectURL,
RemoveStopWords,
RemoveWordsIfNoResults,
RenderingContent,
Expand Down

0 comments on commit 9776cb3

Please sign in to comment.