Skip to content

Commit

Permalink
Rename Item::document property to shard to match LSIF spec
Browse files Browse the repository at this point in the history
  • Loading branch information
DrChat committed Sep 22, 2022
1 parent e3afaf2 commit 151844d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lsif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ pub enum ItemKind {
#[derive(Debug, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Item {
#[serde(rename = "shard")]
pub document: Id,
#[serde(skip_serializing_if = "Option::is_none")]
pub property: Option<ItemKind>,
Expand Down

0 comments on commit 151844d

Please sign in to comment.