Add logic to skip discriminator values for intermediate schemas in multi-level inheritance
Prevent adding discriminator values to schemas that are extended by other schemas in the same discriminator mapping, fixing the never type issue in nested allOf hierarchies
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>