JetBrains / JetBrains/rd

Inheritor of openstruct is deserealized to it's base struct

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
417
Forks
62
Avg merge
9h 15m
Merged PRs (30d)
7

Description

I have the following model:
```kotlin
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.