Skip to content

Instantly share code, notes, and snippets.

@t3hnar
Created January 21, 2013 09:05
Show Gist options
  • Select an option

  • Save t3hnar/4584761 to your computer and use it in GitHub Desktop.

Select an option

Save t3hnar/4584761 to your computer and use it in GitHub Desktop.
json-schema to scala case class
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "#",
"title":"Child",
"properties": {
"name": {
"type": "string",
"id": "name",
"required": true
},
"age": {
"type": "integer",
"id": "age",
"required": true
}
}
}
case class Child(name: String, age: Long)
@notxcain
Copy link
Copy Markdown

Hi!
Did you figure out how to do reverse transformation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment