Skip to content

Conversation

@koperagen
Copy link
Collaborator

No description provided.

@koperagen koperagen added this to the 0.14.0 milestone Jul 4, 2024
@koperagen koperagen self-assigned this Jul 4, 2024
@koperagen koperagen force-pushed the compile-time-schema branch from b7ea13b to e37b49e Compare July 4, 2024 18:12
data class Group(val id: String, val participants: List<Person>) : DataRowSchema

@Test
fun `deeply convert data schema and list of data schema`() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth to compare here, for example, a circular references?

Group depends on Person, Person depends on Group

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started working on this PR with this circular reference idea in mind. Because regular Kotlin object can have them quite easily. But since we ended up converting only DataSchema objects deeply, i think it's not an issue anymore. You really need to do it on purpose to have a cycle between DataSchema objects. So i think it's not worth to bother here

@koperagen koperagen force-pushed the compile-time-schema branch from e37b49e to d744ddc Compare July 5, 2024 15:04
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2024

Generated sources will be updated after merging this PR.
Please inspect the changes in here.

@koperagen koperagen merged commit fda36bb into master Jul 5, 2024
@koperagen koperagen deleted the compile-time-schema branch August 26, 2024 13:47
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

Successfully merging this pull request may close these issues.

3 participants