Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin: Support JVM class hierarchy when resolving common ancestors #45

Open
kdubb opened this issue Nov 4, 2022 · 0 comments
Open

Comments

@kdubb
Copy link
Contributor

kdubb commented Nov 4, 2022

If a union of types (or equivalent) is known at generation time to the JVM (i.e. can be loaded via class loader), then the JVM hierarchy of that type should be considered when resolving the common ancestor of the types.

For example, given the following RAML:

types:
  Int:
    type: number
    format: int32

  Float:
    type: number
    format: float

  Number: (Int | Float)

The common ancestor of Number should resolve to kotlin.Number.

Currently it resolves to kotlin.Any.

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

No branches or pull requests

1 participant