Created
January 21, 2013 09:05
-
-
Save t3hnar/4584761 to your computer and use it in GitHub Desktop.
json-schema to scala case class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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 | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class Child(name: String, age: Long) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
Did you figure out how to do reverse transformation?