krzema12 / snakeyaml-engine-kmp

A Kotlin Multiplatform port of snakeyaml-engine
Apache License 2.0
23 stars 4 forks source link

refactor JsonSchema to avoid unnecessary expect/actual class #168

Closed aSemy closed 4 months ago

aSemy commented 4 months ago

JsonSchema doesn't need to be an expect/actual class.

Instead, refactor the platform-specific Tag/Constructor map to an expect/actual function.

This avoids the "expect/actual classes are incubating" warning for JsonSchema.