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

Inheritor of openstruct is deserealized to it's base struct #93

Open
slavam2605 opened this issue May 6, 2020 · 0 comments
Open

Inheritor of openstruct is deserealized to it's base struct #93

slavam2605 opened this issue May 6, 2020 · 0 comments

Comments

@slavam2605
Copy link
Collaborator

I have the following model:

object BuildModel: Ext(IdeRoot) {
  val buildEventModel = openstruct {
    field("id", string)
    field("message", string)
  }

  val startBuildEventModel = structdef extends buildEventModel {
    field("buildDescriptor", buildDescriptorModel)
  }

  val buildDescriptorModel = structdef {
    field("id", string)
    field("title", string)
    field("workingDir", string)
    field("startTime", long)
  }

  init {
    signal("buildEvent", buildEventModel).async
  }
}

I push a StartBuildEventModel to the signal from one side and I get a BuildEventModel on the other side.

@slavam2605 slavam2605 changed the title Inheritor of openstructis deserealized to it's base struct Inheritor of openstruct deserealized to it's base struct May 6, 2020
@slavam2605 slavam2605 changed the title Inheritor of openstruct deserealized to it's base struct Inheritor of openstruct is deserealized to it's base struct May 6, 2020
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