Skip to content
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
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<RoslynVersion>5.9.0</RoslynVersion>
<TUnitVersion>1.68.4</TUnitVersion>
<TUnitVersion>1.68.17</TUnitVersion>
<PurviewSGFVersion>1.0.0-prerelease.44</PurviewSGFVersion>
<PurviewZodSharpVersion>2.0.0-prerelease.11</PurviewZodSharpVersion>
<PurviewZodSharpVersion>2.0.0-prerelease.12</PurviewZodSharpVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Purview.SourceGeneratorFramework" Version="$(PurviewSGFVersion)" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purview-value-objects",
"version": "1.0.0-prerelease.2",
"version": "1.0.0-prerelease.3",
"license": "MIT",
"author": {
"name": "Kieron Lanning",
Expand Down
2 changes: 1 addition & 1 deletion purview-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"Release": {
"Mode": "None"
}
}
}
5 changes: 1 addition & 4 deletions src/src/Sample/Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ValueObjects\ValueObjects.csproj" />
</ItemGroup>

<ItemGroup>
<!-- In-repo consumers reference the analyzer directly; NuGet consumers get it from the
analyzers/dotnet/cs folder of the Purview.ValueObjects package. -->
<ProjectReference
Expand Down
13 changes: 8 additions & 5 deletions src/src/ZodSharp.AspNetCoreSample/ErrorTypes.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ZodSharp.AspNetCore;
using ZodSharp.Core;

namespace Purview.ValueObjects.ZodSharp.AspNetCoreSample;

Expand All @@ -17,9 +18,11 @@ static partial class ErrorTypes
Code: "aggregate_save_failed",
Description: "The order could not be saved because it was modified concurrently.",
HttpStatus: StatusCodes.Status409Conflict,
MessageFormat: "Order '{OrderId}' (of type {AggregateType}) failed to save"
)
{
Parameters = ["OrderId", "AggregateType"],
};
MessageFormat: "Order '{OrderId}' (of type {AggregateType}) failed to save",
Parameters: new List<ErrorTypeParameter>
{
ErrorType.Param<string>("OrderId"),
ErrorType.Param<string>("AggregateType"),
}
);
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<IsPackable>false</IsPackable>
<!-- Minimal API samples are inherently coupled to many framework types. -->
<NoWarn>$(NoWarn);CA1506</NoWarn>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ValueObjects\ValueObjects.csproj" />
<PackageReference Include="Purview.ZodSharp" />
<PackageReference Include="Purview.ZodSharp.AspNetCore" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ValueObjects\ValueObjects.csproj" />
<!-- In-repo consumers reference the analyzers directly; NuGet consumers get them from the
analyzers/dotnet/cs folder of the Purview.ValueObjects package. -->
<ProjectReference
Expand Down
4 changes: 2 additions & 2 deletions src/src/ZodSharpSample/ZodSharpSample.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ValueObjects\ValueObjects.csproj" />
<PackageReference Include="Purview.ZodSharp" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ValueObjects\ValueObjects.csproj" />
<!-- In-repo consumers reference the analyzers directly; NuGet consumers get them from the
analyzers/dotnet/cs folder of the Purview.ValueObjects package. -->
<ProjectReference
Expand Down
Loading