Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Fix `entry_id` field to camelCase
Merged did:key:z6MkkfM3...sVz5 opened 1 year ago
3 files changed +2 -8 9b2240b9 fc861360
modified crates/radicle-types/bindings/cob/issue/Operation.ts
@@ -4,7 +4,7 @@ import type { Embed } from "../thread/Embed";
import type { State } from "./State";

export type Operation = {
-
  entry_id: string;
+
  entryId: string;
  timestamp: number;
  author: Author;
} & (
modified crates/radicle-types/bindings/cob/patch/Action.ts
@@ -2,9 +2,6 @@
import type { CodeLocation } from "../thread/CodeLocation";
import type { Embed } from "../thread/Embed";

-
/**
-
 * Patch operation.
-
 */
export type Action =
  | { type: "edit"; title: string; target: string }
  | { type: "label"; labels: Array<string> }
@@ -31,10 +28,6 @@ export type Action =
      review: string;
      body: string;
      location?: CodeLocation;
-
      /**
-
       * Comment this is a reply to.
-
       * Should be [`null`] if it's the top-level comment.
-
       */
      reply_to?: string;
      embeds?: Array<Embed>;
    }
modified crates/radicle-types/src/cobs/issue.rs
@@ -50,6 +50,7 @@ impl Issue {
}

#[derive(Serialize, TS)]
+
#[serde(rename_all = "camelCase")]
#[ts(export)]
#[ts(export_to = "cob/issue/")]
pub struct Operation {