Skip to content

Commit

Permalink
Bump YamlDotNet from 15.1.6 to 15.3.0 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jun 17, 2024
1 parent 9c8136e commit 160d8bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BadDicom/BadDicom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="HIC.DicomTypeTranslation" Version="4.1.1" />
<PackageReference Include="Vecc.YamlDotNet.Analyzers.StaticGenerator" Version="15.1.2" />
<PackageReference Include="YamlDotNet" Version="15.1.6" />
<PackageReference Include="YamlDotNet" Version="15.3.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
Expand Down
7 changes: 4 additions & 3 deletions BadDicom/Configuration/ConfigContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace BadDicom.Configuration;

[YamlStaticContext]
public partial class ConfigContext : StaticContext
{
}
[YamlSerializable(typeof(Config))]
[YamlSerializable(typeof(TargetDatabase))]
[YamlSerializable(typeof(ExplicitUIDs))]
public sealed partial class ConfigContext;
4 changes: 2 additions & 2 deletions BadDicom/Configuration/ExplicitUIDs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace BadDicom.Configuration;
/// Config section for loading explicit UIDs from disk and using those in file creation
/// </summary>
[YamlSerializable]
public class ExplicitUIDs
public sealed class ExplicitUIDs
{
/// <summary>
/// Path to a file containing a list of study instance UIDs to use
Expand Down Expand Up @@ -52,6 +52,6 @@ private static IEnumerable<string> GetUIDsFrom(string? path)
{
if (string.IsNullOrWhiteSpace(path) || !File.Exists(path)) return Enumerable.Empty<string>();

return File.ReadLines(path).Where(l => !string.IsNullOrWhiteSpace(l));
return File.ReadLines(path).Where(static l => !string.IsNullOrWhiteSpace(l));
}
}
2 changes: 1 addition & 1 deletion BadDicom/Configuration/TargetDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BadDicom.Configuration;
/// Identify the target database and configuration for generated data
/// </summary>
[YamlSerializable]
public class TargetDatabase
public sealed class TargetDatabase
{
/// <summary>
/// Which RDBMS the database is (MySQL, Microsoft SQL Server, etc)
Expand Down

0 comments on commit 160d8bc

Please sign in to comment.