Convert a swagger 1.2 ApiDeclaration to a Definition