You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamodb has rules for naming the attributes keys defined here. It also includes quite a long list of arguably common words as reserved names (which I think are unjustifiably common, but anyway...).
These rules are enforced by Dynamodb at runtime (it returns an error response IIRC). It would be cool if dynomite could validate these rules at compile time instead.
💻 Basic example
#[derive(Attributes)]structMyTable{// Nope, column is a reserved word, `dynomite` issues a compile-error here,// This should also work with `rename = "foo"`column:String,}
There may also be an option like #[dynomite(escape_reserved_key)] to explicitly opt in to escaping the reserved words
The text was updated successfully, but these errors were encountered:
Veetaha
changed the title
Validate attrobites key names at compile time
Validate attributes key names at compile time
Sep 9, 2020
💡 Feature description
Dynamodb has rules for naming the attributes keys defined here. It also includes quite a long list of arguably common words as reserved names (which I think are unjustifiably common, but anyway...).
These rules are enforced by Dynamodb at runtime (it returns an error response IIRC). It would be cool if
dynomite
could validate these rules at compile time instead.💻 Basic example
There may also be an option like
#[dynomite(escape_reserved_key)]
to explicitly opt in to escaping the reserved wordsThe text was updated successfully, but these errors were encountered: