Skip to content

fix(types): align curation rule tags with server semantics#338

Merged
tharropoulos merged 2 commits intotypesense:masterfrom
tharropoulos:curation-tags
Mar 26, 2026
Merged

fix(types): align curation rule tags with server semantics#338
tharropoulos merged 2 commits intotypesense:masterfrom
tharropoulos:curation-tags

Conversation

@tharropoulos
Copy link
Copy Markdown
Collaborator

Change Summary

The type definition for curation rule creation was too restrictive, allowing only parts of query, filter and tags to be combined when defining a curation rule, when the actual Typesense server semantics allowed a mix of all three. Allow any combination of the types to be valid, but still enforce existence of match when query is defined, and vice versa.

PR Checklist

- allow curation rule tags to be combined with query and filter rules
@tharropoulos tharropoulos merged commit e54cfe3 into typesense:master Mar 26, 2026
1 check passed
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.

1 participant