OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.74k stars 6.32k forks source link

[BUG] Python Client Code Regex `\n` Handle Problem #2954

Open wy193777 opened 5 years ago

wy193777 commented 5 years ago

Bug Report Checklist

Description

When try to generate python client from this Swagger file, it cannot handle parameter regex validation with \n.

openapi-generator version

4.0.0-beta3

OpenAPI declaration file content or url

https://gist.githubusercontent.com/wy193777/e2da6ad64259cc1ad6a672aae55b1d23/raw/f0ae7cf8bb36458298fd7e0e2ed1b099072d40d3/swagger.json

Command line used for generation

openapi-generator generate -i https://gist.githubusercontent.com/wy193777/e2da6ad64259cc1ad6a672aae55b1d23/raw/f0ae7cf8bb36458298fd7e0e2ed1b099072d40d3/swagger.json -g python -o code\jama-client --skip-validate-spec

Steps to reproduce

Generate client, then run tests.

Related issues/PRs
Suggest a fix
auto-labeler[bot] commented 5 years ago

👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.