-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e662012
commit c4f0846
Showing
2 changed files
with
123 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/AspNetCore/WebApi/src/Asp.Versioning.Http/SourceGenerationContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
|
||
namespace Asp.Versioning; | ||
using System.Text.Json.Serialization; | ||
#if NET8_0_OR_GREATER | ||
[JsonSerializable( typeof( ErrorObject ) )] | ||
[JsonSerializable( typeof( ErrorDetail ) )] | ||
[JsonSerializable( typeof( InnerError ) )] | ||
internal sealed partial class SourceGenerationContext : JsonSerializerContext | ||
{ | ||
} | ||
|
||
#endif |