Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit e3499ff

Browse files
committed
api: Fix camelCasing of PackageRecordState variant fields
1 parent 239c2a1 commit e3499ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/api/src/v1/package.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,22 @@ impl PackageRecord {
6666
#[allow(clippy::large_enum_variant)]
6767
pub enum PackageRecordState {
6868
/// The package record needs content sources.
69+
#[serde(rename_all = "camelCase")]
6970
Sourcing {
7071
/// The digests of the missing content.
7172
missing_content: Vec<AnyHash>,
7273
},
7374
/// The package record is processing.
75+
#[serde(rename_all = "camelCase")]
7476
Processing,
7577
/// The package record is rejected.
78+
#[serde(rename_all = "camelCase")]
7679
Rejected {
7780
/// The reason the record was rejected.
7881
reason: String,
7982
},
8083
/// The package record was successfully published to the log.
84+
#[serde(rename_all = "camelCase")]
8185
Published {
8286
/// The envelope of the package record.
8387
record: ProtoEnvelopeBody,

0 commit comments

Comments
 (0)