Closed VasiliyLysokobylko closed 8 years ago
Due to its nature, RC2 should explicitly state that defining discriminator and discriminatorValue should only be available for global type definitions and not for any types that are declared inline.
discriminator
discriminatorValue
# valid types: Device: type: Phone | Notebook discriminator: kind
# invalid application/json: type: Phone | Notebook discriminator: kind
https://github.com/raml-org/raml-spec/issues/309
Due to its nature, RC2 should explicitly state that defining
discriminator
anddiscriminatorValue
should only be available for global type definitions and not for any types that are declared inline.