Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump YamlDotNet from 15.1.6 to 15.3.0 #229

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading