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

Add exception for Utf8JsonReader/Writer to AZC0014 #8752

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Add exception for Utf8JsonReader/Writer to AZC0014 #8752

merged 3 commits into from
Aug 14, 2024

Conversation

pshao25
Copy link
Member

@pshao25 pshao25 commented Aug 1, 2024

We have now enabled JsonModelWriteCore and JsonModelCreateCore in MGC. Now we are adding this WriteCore/CreateCore feature to autorest.csharp, because some customers are asking this. However, these two methods are violating “AZC0014: Types from System.Text.Json, Newtonsoft.Json, System.Collections.Immutable assemblies should not be exposed as part of public API surface. “

Confirmed with @KrzysztofCwalina that Utf8JsonReader/Writer should be an exception to AZC0014. You could refer to that decision in the email titled "Suppress AZC0014 on WriteCore and CreateCore".

@pshao25 pshao25 changed the title Add exception to AZC0014 Add exception for Utf8JsonReader/Writer to AZC0014 Aug 1, 2024
@pshao25 pshao25 merged commit 0b9efdb into main Aug 14, 2024
17 checks passed
@pshao25 pshao25 deleted the AZC0014 branch August 14, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants