Base solution for your next web application

Activities of "area8.tech"

Hello @ismcagdas, thank you for your answer. I tried to add a DocumentFilter and a SchemaFilter as described in https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/451 this page but that code has errors and methods and classes don't match (it seems to be related to an old version of the library). I tried to fix that code but seems too different.

Then I found this Package NJsonSchema and i added the code

    [JsonConverter(typeof(JsonInheritanceConverter), "discriminator")]
    [KnownType(typeof(Dog))]
    public class Animal { ... }
    
    public class Dog { ... }

and it works, infact the returned JSON has the discriminator field, but it is not added to the Swagger, so NSwag.js does not update the angular "service proxies".

Any hint? Agostino

Hi ryancyq, thank you for your reply! I ended up creating a ner angular app from scratch and manually add all the needed packages and components. It was an hard work, but now I have all the necessary .ts files and services and I can work only on html and scss (we use Carbon Design System for this project's frontend).

Thank you again, have a nice day

Showing 1 to 2 of 2 entries