From 151844d3ed1aa063f1f457d94ef35a7fc8dd3a24 Mon Sep 17 00:00:00 2001 From: Justin Moore Date: Thu, 22 Sep 2022 09:25:58 -0500 Subject: [PATCH] Rename `Item::document` property to `shard` to match LSIF spec --- src/lsif.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lsif.rs b/src/lsif.rs index 164d4eb..da565c2 100644 --- a/src/lsif.rs +++ b/src/lsif.rs @@ -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,