Skip to content

Commit 0bd1f50

Browse files
committed
Ensure contact annotations use the correct Json Property name
1 parent 9d68775 commit 0bd1f50

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1313
<UseArtifactsOutput>true</UseArtifactsOutput>
1414
<PackageIcon>icon.png</PackageIcon>
15-
<VersionPrefix>0.2.1</VersionPrefix>
15+
<VersionPrefix>0.3.0</VersionPrefix>
1616
<VersionSuffix></VersionSuffix>
1717
<LangVersion>10.0</LangVersion>
1818
<Features>strict</Features>

OpenEphys.ProbeInterface.NET/ContactAnnotations.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ public class ContactAnnotations
1010
/// <summary>
1111
/// Gets the array of strings holding annotations for each contact. Not all indices must have annotations.
1212
/// </summary>
13+
[JsonProperty("annotations")]
1314
public string[] Annotations { get; protected set; }
1415

1516
/// <summary>
1617
/// Initializes a new instance of the <see cref="ContactAnnotations"/> class.
1718
/// </summary>
18-
/// <param name="contactAnnotations">Array of strings containing annotations for each contact. Size of the array should match the number of contacts, but they can be empty strings.</param>
19+
/// <param name="annotations">Array of strings containing annotations for each contact. Size of the array should match the number of contacts, but they can be empty strings.</param>
1920
[JsonConstructor]
20-
public ContactAnnotations(string[] contactAnnotations)
21+
public ContactAnnotations(string[] annotations)
2122
{
22-
Annotations = contactAnnotations;
23+
Annotations = annotations;
2324
}
2425
}
2526
}

0 commit comments

Comments
 (0)