Parses JSON schemas and translates them into Scala case-class models and/or Sangria GraphQL models
This application is a JSON-schema parser and generator for Scala case-class models and (soon) Sangria GraphQL models. It is currently under development and is currently not guaranteed to work with any JSON schemas apart from the ones tested.
Sdu works with JSON schemas and often has to work with representations of JSON structures (that obey a particular schema) in Scala code. This application allows one to easily generate the required case-class or Sangria model to be used in Scala applications.
Download the zip file or clone the repository from GitHub.
Alter src/main/scala/nl/sdu/modelsgenerator/builder/ScalaBuilder.scala
to suit your needs and execute:
sbt run
Work performed (under contract) for/by Lefebvre Sarrut / Sdu Uitgevers.
PRs accepted at the discretion of the maintainers.
Apache License 2.0