Upgrade to generate specs based on Swagger 1.2

A follow-up for #110.