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
When forgetting to add quotes to the type-string within the serde_as macro, the macro seems to do nothing, but won't throw an error, either. This results in the compiler complaining about the field in question not implementing De/Serialize. Example:
I guess you're using some kind of if-let on the structure of the macro and ignoring any incorrectly-constructed macros rather than throwing a compile-error if the macro structure does not match your expectations.
I hope you don't mind the frequent issues.
The text was updated successfully, but these errors were encountered:
That is an issue indeed. I assumed the parsing crate (darling) would handle this. I have not found a way to get an error in this case.
I think this is the same issue as described in TedDriggs/darling#96.
I hope you don't mind the frequent issues.
Please, keep them going. I like seeing people use this crate and getting issues or comments is the only way to know with what people struggle.
When forgetting to add quotes to the type-string within the serde_as macro, the macro seems to do nothing, but won't throw an error, either. This results in the compiler complaining about the field in question not implementing De/Serialize. Example:
Works:
Fails because
Py<Inner>
does not implement De/Serialize:I guess you're using some kind of if-let on the structure of the macro and ignoring any incorrectly-constructed macros rather than throwing a compile-error if the macro structure does not match your expectations.
I hope you don't mind the frequent issues.
The text was updated successfully, but these errors were encountered: