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
I don't know if this would break anything for qubit but I ask because I have the following use case:
I'm fetching data from a request on the rust side which expects the JSON to be in snake_case.
But on the TS my linter yells at me for not using camelCase.
however, it seems the serde-compat feature, enabled by default` overrides the ts-rs directive.
We can always enable this feature ourselves from where we import it if we want it.
Or maybe this is a issue I should put on ts-rs, that ts directives should override the serde directive if it exists.
That should give you the functionality you're looking for, as ts-rs is only used for generating the types, the serialisation is still handled by serde.
Hey!
I don't know if this would break anything for
qubit
but I ask because I have the following use case:I'm fetching data from a request on the
rust
side which expects the JSON to be insnake_case
.But on the TS my linter yells at me for not using
camelCase
.So I did the following:
however, it seems the
serde-compat
feature, enabled by default` overrides the ts-rs directive.We can always enable this feature ourselves from where we import it if we want it.
Or maybe this is a issue I should put on
ts-rs
, thatts
directives should override theserde
directive if it exists.EDIT:
I did wind up making an issue over on ts-rs as well: Aleph-Alpha/ts-rs#375
The text was updated successfully, but these errors were encountered: