generator: escape Rust reserved keywords in obj.field/input.field emission #136
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_blueprint!136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_generator_escape_keyword"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fix one of the two bugs in #135. Rust reserved keyword (type) field names in OSIS schemas now emit as obj.r#type = input.r#type; instead of obj.type = input.type; (which does not compile).
Related Issue
Closes half of #135.
Changes
Added crate::rust::util::escape_rust_keyword helper; applied at both rust_osis.rs field-copy emit sites.
Test Results
Regenerated hero_books publishing/server with the patched generator: obj.r#type lands at the two expected sites.