added support for swagger-spec 1.2