Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Remove discriminator from any union type definition #307

Closed
sichvoge opened this issue Mar 14, 2016 · 1 comment
Closed

Remove discriminator from any union type definition #307

sichvoge opened this issue Mar 14, 2016 · 1 comment
Assignees
Milestone

Comments

@sichvoge
Copy link
Contributor

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
@sichvoge
Copy link
Contributor Author

sichvoge commented Apr 4, 2016

Not done! It is still there and was missing. Reopen it until fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant