added support for swagger 1.2 spec