Skip to content

Commit

Permalink
added alias packageName for the packageId field in the request bo…
Browse files Browse the repository at this point in the history
…dy for publishing packages
  • Loading branch information
calvinrp committed Nov 16, 2023
1 parent b614fd0 commit 0feef4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/api/src/v1/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ pub struct MissingContent {
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PublishRecordRequest<'a> {
/// The id of the package being published.
/// The package name being published.
#[serde(alias = "packageName")]
pub package_id: Cow<'a, PackageId>,
/// The publish record to add to the package log.
pub record: Cow<'a, ProtoEnvelopeBody>,
Expand Down

0 comments on commit 0feef4f

Please sign in to comment.