Skip to content

Commit 8a2bb22

Browse files
authored
Merge pull request #3725 from GitTools/dependabot/nuget/JsonSchema.Net.Generation-3.4.0
(deps): Bump JsonSchema.Net.Generation from 3.3.2 to 3.4.0
2 parents 7681adc + 7240cb6 commit 8a2bb22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55
<ItemGroup>
66
<PackageVersion Include="FluentDateTime" Version="2.1.0" />
7-
<PackageVersion Include="JsonSchema.Net.Generation" Version="3.3.2" />
7+
<PackageVersion Include="JsonSchema.Net.Generation" Version="3.4.0" />
88
<PackageVersion Include="LibGit2Sharp" Version="0.27.2" />
99
<PackageVersion Include="JetBrains.Annotations" Version="2023.2.0" />
1010
<PackageVersion Include="Microsoft.Build" Version="17.7.2" />

src/GitVersion.Schema/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
var configuration = new SchemaGeneratorConfiguration
1313
{
14-
PropertyNamingMethod = PropertyNamingMethods.KebabCase,
14+
PropertyNameResolver = PropertyNameResolvers.KebabCase,
1515
Nullability = Nullability.AllowForNullableValueTypes,
1616
PropertyOrder = PropertyOrder.ByName,
1717
};
@@ -30,7 +30,7 @@
3030
Console.WriteLine($"Writing schema to {fileName}");
3131
schema.WriteToFile(fileName);
3232

33-
configuration.PropertyNamingMethod = PropertyNamingMethods.AsDeclared;
33+
configuration.PropertyNameResolver = PropertyNameResolvers.AsDeclared;
3434

3535
builder = new JsonSchemaBuilder();
3636
builder.Schema("http://json-schema.org/draft-07/schema#");

0 commit comments

Comments
 (0)