Skip to content

Commit

Permalink
Reserving two diagnostic codes for serialization work
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabYourPitchforks committed Apr 6, 2023
1 parent 657865f commit ba234d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/project/list-of-diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ The PR that reveals the implementation of the `<IncludeInternalObsoleteAttribute
| __`SYSLIB0047`__ | XmlSecureResolver is obsolete. Use XmlResolver.ThrowingResolver instead when attempting to forbid XML external entity resolution. |
| __`SYSLIB0048`__ | RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead. |
| __`SYSLIB0049`__ | JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties. |
| __`SYSLIB0050`__ | (reserved for serialization work) |
| __`SYSLIB0051`__ | (reserved for serialization work) |

## Analyzer Warnings

Expand Down
6 changes: 6 additions & 0 deletions src/libraries/Common/src/System/Obsoletions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,11 @@ internal static class Obsoletions

internal const string JsonSerializerOptionsAddContextMessage = "JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties.";
internal const string JsonSerializerOptionsAddContextDiagId = "SYSLIB0049";

internal const string LegacyFormatterMessage = "(reserved for serialization work)";
internal const string LegacyFormatterDiagId = "SYSLIB0050";

internal const string LegacyFormatterImplMessage = "(reserved for serialization work)";
internal const string LegacyFormatterImplDiagId = "SYSLIB0051";
}
}

0 comments on commit ba234d2

Please sign in to comment.