buildpacks-ruby
buildpacks-ruby copied to clipboard
Deny unknown fields
Add:
#[serde(deny_unknown_fields)]
To all structs that implement deserialize. For example:
#[derive(Deserialize, Serialize, Debug)]
#[serde(deny_unknown_fields)]
struct PersonV2 {
name: String,
updated_at: DateTime<Utc>
}
More info: https://github.com/schneems/magic_migrate/blob/3e43a72c329a2f03c016e0d37cd8ec085af7982f/README.md
Either confirm they exist or add them
We are still missing some of the metadata structs
#[derive(Deserialize, Serialize, Debug, Clone)]
pub(crate) struct MetadataV1 {
pub(crate) version: ResolvedBundlerVersion,
}
Ok I'll add the remaining. Thanks for pointing that out.