-
Notifications
You must be signed in to change notification settings - Fork 3
Prefix JSON serialized data members with json_serialized_* & remove unnecessary type definitions #63
Conversation
} | ||
|
||
data class InputDescriptor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in mainline web5-rs now, so idk when the time will come when we take this out and use web5-rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we need to make that jump sooner rather than later, but I'm not prepared to full-commit to a hosting solution. @nitro-neal what do you think about a temporary measure like throwing something up to jitpack, with recognition it isn't our longterm hosting solution?
} | ||
Some(s) => s | ||
.iter() | ||
.find(|s| s.r#type == *"PFI") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should probably make PFI a parameter,
an optional type parameter, if none specified it will return first or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well this is a function specific to tbdex, not a generalized function for retrieving service endpoints from did's
I'm open to adding something to web5 which is more generalizable, but something for a later date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the prefix is huge and I think clears it up a lot 👏
At the UniFFI layer, types which require JSON serialization are serialized in-full, so that rather than duplicating type definitions 3 times, we only need to do so 2 times