Splet05. maj 2015 · The way that Swashbuckle currently generates a Swagger spec file is that it only shows info about HolderClass and about PolymorphicBase. Nowhere does it acknowledge the child classes. Is there anything we can do to make Swashbuckle output the child classes in the json spec file? We don't need anything to work beyond that. Splet25. sep. 2016 · Referencing OpenAPI 2.0, Schema Object, or Swagger 2.0, Schema Object, and the definition of discriminator field as: Adds support for polymorphism. The …
Inheritance and Polymorphism - Swagger
Splet/// To support polymorphism and inheritance behavior, Swashbuckle needs to detect the "known" subtypes for a given base type. /// That is, the subtypes exposed by your API. By … Splet02. okt. 2024 · We are currently using NSwagStudio to generate dto based on our Swashbuckle generated Swagger definitions. We have one polymorphic class hierarchy … deadly femfighters
Swashbuckle 和 ASP.NET Core 入门 Microsoft Learn
SpletSwashbuckle.AspNetCore.Polymorphism. Polymorhism doc and schema filters. How to use. Use the AddTypes extension to add an array of your base types. Splet15. mar. 2024 · Se puede agregar Swashbuckle con los métodos siguientes: Visual Studio Visual Studio para Mac Visual Studio Code CLI de .NET Core En la ventana Consola del Administrador de paquetes: Vaya a Vista > Otras ventanas > Consola del Administrador de paquetes. Vaya al directorio en el que está el archivo .csproj. Ejecute el siguiente … Splet05. maj 2015 · La façon dont Swashbuckle génère actuellement un fichier de spécification Swagger est qu'il n'affiche que des informations sur HolderClass et sur PolymorphicBase. Nulle part il ne reconnaît les classes enfants. Y a-t-il quelque chose que nous puissions faire pour que Swashbuckle affiche les classes enfants dans le fichier de spécification json ? deadly fate angela marsons