---
title: "Discussion on \"System.Text.Json Polymorphism with Swagger in .NET 7\" | Hashnode"
description: "Discussion on \"System.Text.Json Polymorphism with Swagger in .NET 7\". Configure polymorphic JSON contracts in .NET 7 and carry type discriminators through System.Text.Json, Swagger, validation, and generated clients"
url: "https://hashnode.com/posts/system-text-json-polymorphism-with-swagger-in-net-7/6aa99778c999d253c1a52af6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [System.Text.Json Polymorphism with Swagger in .NET 7](https://steponeit.hashnode.dev/system-text-json-polymorphism-with-swagger-in-net-7?utm_source=hashnode&utm_medium=feed)

Configure polymorphic JSON contracts in .NET 7 and carry type discriminators through System.Text.Json, Swagger, validation, and generated clients

Sep 15 · 13 min read · steponeit.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#dotnetcore](https://hashnode.com/tag/dotnetcore)
-   [#swagger](https://hashnode.com/tag/swagger)
-   [#swagger-ui](https://hashnode.com/tag/swagger-ui)
-   [#json](https://hashnode.com/tag/json)
-   [#c-sharp](https://hashnode.com/tag/c-sharp)
-   [#backend](https://hashnode.com/tag/backend)
-   [#backend-development](https://hashnode.com/tag/backend-development)

## Written by

[StepOne](https://hashnode.com/@steponeit)

@steponeit

  
[View profile](https://hashnode.com/@steponeit)

CSharp is getting bigger and bigger

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
