4

Is there any way I can support oneOf in asp.net core webapi.

Can I support two different schemas in the request body?

enter image description here https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/#oneof

Dinesh
  • 97
  • 9

1 Answers1

0

Use Kiota: https://learn.microsoft.com/en-us/openapi/kiota/overview

Example:

dotnet kiota generate --openapi http://.../swagger.json -l CSharp --output TestApiSdk -c TestApi -n Test.Api.Client
Maciej Kachniarz
  • 221
  • 3
  • 11