Skip to content

Fix raw identifiers in collection schema#76

Merged
RoDmitry merged 3 commits intotypesense:mainfrom
milesgranger:milesgranger/raw-idents-collection-schema-fix
Mar 18, 2026
Merged

Fix raw identifiers in collection schema#76
RoDmitry merged 3 commits intotypesense:mainfrom
milesgranger:milesgranger/raw-idents-collection-schema-fix

Conversation

@milesgranger
Copy link
Contributor

@milesgranger milesgranger commented Mar 18, 2026

Change Summary

Presently, a struct with a field using a raw identifier, like r#type will have this as the field name in the generated schema collection. This adds a simple strip_raw_prefix to remove this and a consolidated test.

PR Checklist

@RoDmitry
Copy link
Collaborator

All good. Just run cargo fmt

@RoDmitry RoDmitry self-requested a review March 18, 2026 10:55
@RoDmitry RoDmitry merged commit 66e2f97 into typesense:main Mar 18, 2026
3 checks passed
@milesgranger milesgranger deleted the milesgranger/raw-idents-collection-schema-fix branch March 19, 2026 06:46
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.

2 participants