Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Prefix JSON serialized data members with json_serialized_* & remove unnecessary type definitions #63

Merged
merged 7 commits into from
Jun 27, 2024

Conversation

KendallWeihe
Copy link
Contributor

@KendallWeihe KendallWeihe commented Jun 26, 2024

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

@KendallWeihe KendallWeihe changed the title Prefix JSON serialized data members with json_serialized_* Prefix JSON serialized data members with json_serialized_* & remove unnecessary type definitions Jun 27, 2024
}

data class InputDescriptor(
Copy link
Contributor

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

Copy link
Contributor Author

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")
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

@nitro-neal nitro-neal left a 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 👏

@KendallWeihe KendallWeihe merged commit 2b594ef into main Jun 27, 2024
6 checks passed
@KendallWeihe KendallWeihe deleted the kendall/prefix-json_serialized branch June 27, 2024 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants