scala-jsonschema icon indicating copy to clipboard operation
scala-jsonschema copied to clipboard

scala.js support?

Open ngbinh opened this issue 5 years ago • 6 comments

I can help with the cross-compiling but would like to check if it is something you guys are not against.

ngbinh avatar Aug 05 '20 09:08 ngbinh

that would be nice I am not sure how useful it would be, coz to me.. where do we use json schema generation? - rest api, right? how much people are doing it in scala to run with node later?

but.. anyways sounds like it may bring a lot of fun, huh? )) wonder if adding cross-compilation with scala.js is something that can be accomplished alongside with scala-native?

andyglow avatar Aug 13 '20 02:08 andyglow

scala-native gonna be hard due to https://github.com/scala-native/scala-native/issues/1629 https://github.com/scala-native/scala-native/issues/1629

ngbinh avatar Aug 13 '20 05:08 ngbinh

The use case for me is I may need to use json-schema to define certain UI structures.

ngbinh avatar Aug 13 '20 05:08 ngbinh

so you are doing frontend (web-ui) in scala?

andyglow avatar Aug 13 '20 06:08 andyglow

@andyglow yes. Been using scala.js since 2015 after years of Typescript/CoffeeScript. We now end up with about 1M LOCs frontend codebase that builds to 14 different bundles/products.

ngbinh avatar Aug 13 '20 06:08 ngbinh

@ngbinh sounds impressive! So yeah, if you have time and ready to invest it into Scala-jsonschema you are welcome. Besides other things it is an opportunity for me to dive into Scala.js a little )

andyglow avatar Aug 13 '20 06:08 andyglow