Fragments 2017

A conference on the mobile ecosystem in India

Participate

Lyrics: A Schema to POJO library

Submitted by Sourabh Gupta (Tech - BLR) (@sourabhflipkart) on Sunday, 30 July 2017

Section: Full Talk Technical level: Intermediate

Abstract

Lyrics is a new library created to convert schema files into java POJO files. This has been built using JavaPoet, a code generation library comparable to Sun’s CodeModel.
Though there are existing libraries which convert JSON schemas to POJO files, specifically jsonschema2pojo, we decided to create a new library because they lack features that we need, like support for generic classes, configurable modifiers, android validation annotations etc.
Project is already open sourced Github link -: https://github.com/flipkart-incubator/Lyrics

Outline

Convert schema to java POJO
Single POJO repositories between various clients and Server.
Easy management of Server deployment without breaking any client contract.

Speaker bio

Senior Mobile Engineer at Flipkart.

Slides

https://docs.google.com/presentation/d/10QzKOwgg62CSb0SV8-9t5AxwF-LuaabPPG5BTMpcEmM/edit?usp=sharing

Comments

  • Schaefer Edda (@companypayslips) a month ago

    Lyrics is a new library created to convert schema files into java POJO files. This has been built using JavaPoet, a code generation library comparable to Sun’s CodeModel: run 3 online.

Login with Twitter or Google to leave a comment