mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 15:56:08 +00:00
Fixed regular expression in python client codegen that was removing any trailing chars instead of only expected ones (#13164)
* Fixed regular expression in python client codegen The previous regular expression was too loose, including any last character in the second group. This commit fixes that, making sure we only remove leading forward slashes, trailing forward slashes or trailing `\i`. This commit closes 13069. * Added generated files * Edit comment * Add test cases Co-authored-by: antonio.silva <antonio.silva@feedzai.com>
This commit is contained in:
@@ -1327,7 +1327,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
number = 32.1 # float | None
|
||||
double = 67.8 # float | None
|
||||
pattern_without_delimiter = "Aj" # str | None
|
||||
pattern_without_delimiter = "AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>" # str | None
|
||||
byte = 'YQ==' # str | None
|
||||
integer = 10 # int | None (optional)
|
||||
int32 = 20 # int | None (optional)
|
||||
|
||||
Reference in New Issue
Block a user