Intro to JSON Schema with Go, and Generating Validators And Skeletons

Intro to JSON Schema with Go, and Generating Validators And Skeletons

By Daisuke Maki (‎lestrrat‎) from Shibuya.pm
Date: Tuesday, 21 June 2016 14:00
Duration: 50 minutes
Target audience: Intermediate
Language: English
Tags: golang json schema


While there are many tools to generate skeleton APIs from schemas, such as Protocol Buffers, Flat Buffers, Swagger, etc, the work environment called for something a bit more simple: Binary protocols and large schema-based solution sure does sound nice, but for the moment we could not expect somebody to be babysitting it once it was adopted.

So we started looking into solutions that looked more familiar to every average Joe web developer, and decided to check out JSON Schema and its family.

The only catch was that JSON Schema was developed mainly for... JSON/Javascript, which comes to par with Perl in its freedom from types. We were in the middle of shifting our development from Python to Go, and Go would be the natural choice to implement things, except Go has types, it's compiled, and just requires you to think just a tiiiiiiiny bit harder than you might expect to work with a specifications like JSON Schema.

This talk will discuss topics such as:
* Why I have written everything from scratch
* The various annoyances encountered writing this stuff in Go instead of a language like Perl
* How we are using this stuff to build applications.


Attended by: Dave Rolsky (‎autarch‎), Ruben Amortegui, Michael South (‎msouth‎), Stevan Little (‎stevan‎), Mickey Nasriachi (‎Mickey‎), Adam Engle, Nathan Dyck, Galen Charlton, John Anderson (‎genehack‎), Terry Yang, Tom Green (‎Tom‎), Brad Oaks (‎bradoaks‎), Daniel LeWarne (‎Possum‎), Ben Tyler, Thomas Stanton (‎tstanton‎), Michael Hamlin (‎myrrhlin‎), Ricardo Signes (‎rjbs‎),