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

Add valid/invalid tests for discriminators #128

Open
postatum opened this issue Jul 23, 2019 · 0 comments
Open

Add valid/invalid tests for discriminators #128

postatum opened this issue Jul 23, 2019 · 0 comments

Comments

@postatum
Copy link
Contributor

https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#object-type

  • The value must match the name of one of the declared properties of a type
  • Unsupported practices are inline type declarations ...
  • ... and using discriminator with non-scalar properties
  • Neither discriminator nor discriminatorValue can be defined for any inline type declarations or union types
  • discriminatorValue: Requires including a discriminator facet in the type declaration.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant