Base solution for your next web application

Activities of "area8.tech"

Question

Hello, I have a question about how swagger generates the JSON about the subclasses. I added the

    [JsonConverter(typeof(JsonInheritanceConverter), "discriminator")]
    [KnownType(typeof(SubClass))]

decorators on the superclass and I added the Package NJsonSchema as I see on their documentation, but the generated JSON doesn't have the discriminator field and the subclasses aren't generated, so I cannot use them in the Angular FrontEnd

How can I resolve this? Thank you for your help. Agostino

Hi, we need to remove Metronic stuff from the frontend. Is that possibile? I searched for already asked question, but many users wants to change theme. I found an old answer on SO: https://stackoverflow.com/questions/46497451/aspnetzero-ui-template-change/46498458#46498458 but it links to an old documentation that's no longer available.

Thanks, Agostino

Showing 1 to 2 of 2 entries