fixes #3231 to add a simple swagger library for creating and marshalling swagger 1.2