René's URL Explorer Experiment


Title: OpenApiSchema System.Text.Json (De)Serialization · Issue #2299 · microsoft/OpenAPI.NET · GitHub

Open Graph Title: OpenApiSchema System.Text.Json (De)Serialization · Issue #2299 · microsoft/OpenAPI.NET

X Title: OpenApiSchema System.Text.Json (De)Serialization · Issue #2299 · microsoft/OpenAPI.NET

Description: Is your feature request related to a problem? Please describe. Default System.Text.Json Serialization of OpenApiJsonSchema is verbose (complete) and unsatisfying. Describe the solution you'd like A simple way to fix it, probably via a Js...

Open Graph Description: Is your feature request related to a problem? Please describe. Default System.Text.Json Serialization of OpenApiJsonSchema is verbose (complete) and unsatisfying. Describe the solution you'd like A...

X Description: Is your feature request related to a problem? Please describe. Default System.Text.Json Serialization of OpenApiJsonSchema is verbose (complete) and unsatisfying. Describe the solution you'd li...

Opengraph URL: https://github.com/microsoft/OpenAPI.NET/issues/2299

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenApiSchema System.Text.Json (De)Serialization","articleBody":"**Is your feature request related to a problem? Please describe.**\nDefault System.Text.Json Serialization of OpenApiJsonSchema is verbose (complete) and unsatisfying.\n\n**Describe the solution you'd like**\nA simple way to fix it, probably via a JsonConverter, either by default or to configure on AddMVC json options.\n\n**Describe alternatives you've considered**\n\nOtherwise, OpenApiSchema could support direct serialization to a JsonWriter:\n\n**Additional context**\nTurns out I did it in my projects, and I also just really wanted to know if this was appropriate, or I missed something available\n```c#\n\ninternal class SchemaConverter : System.Text.Json.Serialization.JsonConverter\u003cOpenApiSchema\u003e\n{\n\tprivate static readonly ConcurrentDictionary\u003cint, JsonSerializerOptions\u003e _jsonSerializerCache = new();\n\tpublic override OpenApiSchema Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)\n\t{\n\t\tvar correctedOptions = _jsonSerializerCache.GetOrAdd(options.GetHashCode(), _ =\u003e\n\t\t{\n\t\t\tvar optionsCopy = new JsonSerializerOptions(options);\n\t\t\toptionsCopy.Converters.Remove(options.Converters.First(c =\u003e c is SchemaConverter));\n\t\t\treturn optionsCopy;\n\t\t});\n\n\t\treturn JsonSerializer.Deserialize\u003cOpenApiSchema\u003e(ref reader, correctedOptions)!;\n\t}\n\n\tpublic override void Write(Utf8JsonWriter writer, OpenApiSchema value, JsonSerializerOptions options)\n\t{\n\t\tusing var memoryStream = new MemoryStream();\n\t\tusing (var textWriter = new StreamWriter(memoryStream, leaveOpen: true))\n\t\t{\n\t\t\tvalue.SerializeAsV31(new OpenApiJsonWriter(textWriter));\n\t\t\ttextWriter.Flush();\n\t\t}\n\n\t\tmemoryStream.Position = 0;\n\t\twriter.WriteRawValue(memoryStream.ToArray());\n\t}\n}\n\n\n```","author":{"url":"https://github.com/Poltuu","@type":"Person","name":"Poltuu"},"datePublished":"2025-04-02T09:51:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2299/OpenAPI.NET/issues/2299"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:771fefd5-2997-7875-3d13-25fda074a84b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE97C:5A2ED:324C73:4404A8:69825489
html-safe-nonce8f6162e10cb5c58a352363a75abfddd30d1732c85e712e3ba88e52344b17c589
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTdDOjVBMkVEOjMyNEM3Mzo0NDA0QTg6Njk4MjU0ODkiLCJ2aXNpdG9yX2lkIjoiMzcxODA3OTMxMjE4NDg5MDUwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacea87431f658a1b0b547541033d90deaca0ae691ed7dd3314e02915a40dafc3a5
hovercard-subject-tagissue:2965851902
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/OpenAPI.NET/2299/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ec775845cc9a6325bca321ff455c76f001309df34d31ca123498c66991179491/microsoft/OpenAPI.NET/issues/2299
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ec775845cc9a6325bca321ff455c76f001309df34d31ca123498c66991179491/microsoft/OpenAPI.NET/issues/2299
og:image:altIs your feature request related to a problem? Please describe. Default System.Text.Json Serialization of OpenApiJsonSchema is verbose (complete) and unsatisfying. Describe the solution you'd like A...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePoltuu
hostnamegithub.com
expected-hostnamegithub.com
None5a7140cc648b2cdbea97926248d63eb74cfc2f06ec2c0582e23ad07913b6c9fe
turbo-cache-controlno-preview
go-importgithub.com/microsoft/OpenAPI.NET git https://github.com/microsoft/OpenAPI.NET.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id97175798
octolytics-dimension-repository_nwomicrosoft/OpenAPI.NET
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id97175798
octolytics-dimension-repository_network_root_nwomicrosoft/OpenAPI.NET
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeae0a2862c46988d0b368534d563f8e044fa42ea
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2299#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FOpenAPI.NET%2Fissues%2F2299
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FOpenAPI.NET%2Fissues%2F2299
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FOpenAPI.NET
Reloadhttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2299
Reloadhttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2299
Reloadhttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2299
microsoft https://patch-diff.githubusercontent.com/microsoft
OpenAPI.NEThttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2FOpenAPI.NET
Fork 282 https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2FOpenAPI.NET
Star 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2FOpenAPI.NET
Code https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET
Issues 24 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues
Pull requests 2 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulls
Discussions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/discussions
Actions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/actions
Projects 0 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/projects
Models https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/models
Wiki https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/wiki
Security 0 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/security
Insights https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulse
Code https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET
Issues https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues
Pull requests https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulls
Discussions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/discussions
Actions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/actions
Projects https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/projects
Models https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/models
Wiki https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/wiki
Security https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/security
Insights https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/OpenAPI.NET/issues/2299
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/OpenAPI.NET/issues/2299
OpenApiSchema System.Text.Json (De)Serializationhttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2299#top
v3-postGAhttps://github.com/microsoft/OpenAPI.NET/milestone/23
https://github.com/Poltuu
https://github.com/Poltuu
Poltuuhttps://github.com/Poltuu
on Apr 2, 2025https://github.com/microsoft/OpenAPI.NET/issues/2299#issue-2965851902
v3-postGANo due datehttps://github.com/microsoft/OpenAPI.NET/milestone/23
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.