updated api examples to match 2.0 spec, swagger field must be a string "2.0" https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#swagger-object-
updated codegen to match 2.0 spec