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:
antssilva96
2022-08-16 17:06:53 +01:00
committed by GitHub
parent 4e123436d0
commit 7e5ee2142c
6 changed files with 55 additions and 5 deletions

View File

@@ -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)