mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-07 20:16:09 +00:00
[python] json like str response (#18069)
* [python] json like str response * [python] fix response deserialize * [python] update sample * [python] fix echo_api test quotes
This commit is contained in:
@@ -113,7 +113,7 @@ class TestManual(unittest.TestCase):
|
||||
n = openapi_client.Pet.from_dict({"name": "testing", "photoUrls": ["http://1", "http://2"]})
|
||||
api_instance = openapi_client.BodyApi()
|
||||
api_response = api_instance.test_echo_body_pet_response_string(n)
|
||||
self.assertEqual(api_response, "{'name': 'testing', 'photoUrls': ['http://1', 'http://2']}")
|
||||
self.assertEqual(api_response, '{"name": "testing", "photoUrls": ["http://1", "http://2"]}')
|
||||
|
||||
t = openapi_client.Tag()
|
||||
api_response = api_instance.test_echo_body_tag_response_string(t)
|
||||
|
||||
Reference in New Issue
Block a user