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

Clarify usage of enum in a union type #712

Closed
jstoiko opened this issue Jun 14, 2019 · 0 comments · Fixed by #737
Closed

Clarify usage of enum in a union type #712

jstoiko opened this issue Jun 14, 2019 · 0 comments · Fixed by #737
Milestone

Comments

@jstoiko
Copy link
Contributor

jstoiko commented Jun 14, 2019

Any type declaration may have an enum facet. In the context of a union type, this means that each value of the enum should match at least one of the super type declaration. We should make that clear.

Proposed clarification

  • Add that if the facet "enum" is declared in a union type, each value of that "enum" MUST match at least one of its super types
@jstoiko jstoiko added this to the v1.0.1 milestone Jun 14, 2019
postatum added a commit to raml-org/raml-tck that referenced this issue Nov 21, 2019
jstoiko added a commit that referenced this issue Aug 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant