petrochenko-pavel-a / raml-js-parser2-issues

0 stars 0 forks source link

Remove `discriminator` from any union type definition #23

Closed VasiliyLysokobylko closed 8 years ago

VasiliyLysokobylko commented 8 years ago

In RAML 1.0 RC1 you are able to define a discriminator for union types. This could introduce a lot of ambiguity when, for example, the types itself have their definition of a discriminator.

To avoid any ambiguity, the suggestion is to remove discriminator from any union type.

PersonOrDog: 
   type: Person | Dog
   discriminator: hasTail # will be removed in RC2
VasiliyLysokobylko commented 8 years ago

https://github.com/raml-org/raml-spec/issues/307

petrochenko-pavel-a commented 8 years ago

This is handled by definition system cleanup