Permalink
Please sign in to comment.
Browse files
Python improved (#5512)
* ignore .vscode * fixed test case for models requiring mandatory attributes. added deserialize test for enum class * construct model with mandatory attributes. improve class reflection (e.g. deserialize). disable generated empty model unit test for further FIXME * rebuilt samples * FIXME comment * FIXME comment * fix deserialization enum test
- Loading branch information...
Showing
with
924 additions
and 1,174 deletions.
- +1 −0 .gitignore
- +8 −7 modules/swagger-codegen/src/main/resources/python/api_client.mustache
- +27 −19 modules/swagger-codegen/src/main/resources/python/model.mustache
- +3 −1 modules/swagger-codegen/src/main/resources/python/model_test.mustache
- +8 −7 samples/client/petstore/python/petstore_api/api_client.py
- +19 −17 samples/client/petstore/python/petstore_api/models/additional_properties_class.py
- +20 −19 samples/client/petstore/python/petstore_api/models/animal.py
- +17 −15 samples/client/petstore/python/petstore_api/models/animal_farm.py
- +21 −19 samples/client/petstore/python/petstore_api/models/api_response.py
- +17 −15 samples/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py
- +17 −15 samples/client/petstore/python/petstore_api/models/array_of_number_only.py
- +21 −19 samples/client/petstore/python/petstore_api/models/array_test.py
- +28 −26 samples/client/petstore/python/petstore_api/models/capitalization.py
- +22 −21 samples/client/petstore/python/petstore_api/models/cat.py
- +19 −17 samples/client/petstore/python/petstore_api/models/category.py
- +17 −15 samples/client/petstore/python/petstore_api/models/class_model.py
- +17 −15 samples/client/petstore/python/petstore_api/models/client.py
- +22 −21 samples/client/petstore/python/petstore_api/models/dog.py
- +19 −17 samples/client/petstore/python/petstore_api/models/enum_arrays.py
- +18 −15 samples/client/petstore/python/petstore_api/models/enum_class.py
- +24 −22 samples/client/petstore/python/petstore_api/models/enum_test.py
- +46 −48 samples/client/petstore/python/petstore_api/models/format_test.py
- +19 −17 samples/client/petstore/python/petstore_api/models/has_only_read_only.py
- +17 −15 samples/client/petstore/python/petstore_api/models/list.py
- +19 −17 samples/client/petstore/python/petstore_api/models/map_test.py
- +21 −19 ...es/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py
- +19 −17 samples/client/petstore/python/petstore_api/models/model_200_response.py
- +17 −15 samples/client/petstore/python/petstore_api/models/model_return.py
- +25 −24 samples/client/petstore/python/petstore_api/models/name.py
- +17 −15 samples/client/petstore/python/petstore_api/models/number_only.py
- +28 −26 samples/client/petstore/python/petstore_api/models/order.py
- +18 −15 samples/client/petstore/python/petstore_api/models/outer_enum.py
- +30 −30 samples/client/petstore/python/petstore_api/models/pet.py
- +19 −17 samples/client/petstore/python/petstore_api/models/read_only_first.py
- +17 −15 samples/client/petstore/python/petstore_api/models/special_model_name.py
- +19 −17 samples/client/petstore/python/petstore_api/models/tag.py
- +32 −30 samples/client/petstore/python/petstore_api/models/user.py
- +5 −14 samples/client/petstore/python/test/test_additional_properties_class.py
- +5 −14 samples/client/petstore/python/test/test_animal.py
- +5 −14 samples/client/petstore/python/test/test_animal_farm.py
- +5 −14 samples/client/petstore/python/test/test_api_response.py
- +4 −13 samples/client/petstore/python/test/test_array_of_array_of_number_only.py
- +4 −13 samples/client/petstore/python/test/test_array_of_number_only.py
- +5 −14 samples/client/petstore/python/test/test_array_test.py
- +3 −1 samples/client/petstore/python/test/test_capitalization.py
- +5 −14 samples/client/petstore/python/test/test_cat.py
- +5 −14 samples/client/petstore/python/test/test_category.py
- +3 −1 samples/client/petstore/python/test/test_class_model.py
- +4 −13 samples/client/petstore/python/test/test_client.py
- +5 −14 samples/client/petstore/python/test/test_dog.py
- +4 −13 samples/client/petstore/python/test/test_enum_arrays.py
- +5 −14 samples/client/petstore/python/test/test_enum_class.py
- +5 −14 samples/client/petstore/python/test/test_enum_test.py
- +18 −13 samples/client/petstore/python/test/test_fake_api.py
- +0 −44 samples/client/petstore/python/test/test_fake_classname_tags_123_api.py
- +5 −14 samples/client/petstore/python/test/test_format_test.py
- +4 −13 samples/client/petstore/python/test/test_has_only_read_only.py
- +4 −13 samples/client/petstore/python/test/test_list.py
- +4 −13 samples/client/petstore/python/test/test_map_test.py
- +5 −14 samples/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py
- +5 −14 samples/client/petstore/python/test/test_model_200_response.py
- +5 −14 samples/client/petstore/python/test/test_model_return.py
- +5 −14 samples/client/petstore/python/test/test_name.py
- +4 −13 samples/client/petstore/python/test/test_number_only.py
- +5 −14 samples/client/petstore/python/test/test_order.py
- +3 −1 samples/client/petstore/python/test/test_outer_enum.py
- +5 −14 samples/client/petstore/python/test/test_pet.py
- +2 −13 samples/client/petstore/python/test/test_pet_api.py
- +5 −14 samples/client/petstore/python/test/test_read_only_first.py
- +5 −14 samples/client/petstore/python/test/test_special_model_name.py
- +2 −13 samples/client/petstore/python/test/test_store_api.py
- +5 −14 samples/client/petstore/python/test/test_tag.py
- +5 −14 samples/client/petstore/python/test/test_user.py
- +2 −13 samples/client/petstore/python/test/test_user_api.py
- +1 −3 samples/client/petstore/python/tests/test_api_client.py
- +1 −3 samples/client/petstore/python/tests/test_api_exception.py
- +20 −0 samples/client/petstore/python/tests/test_deserialization.py
- +1 −3 samples/client/petstore/python/tests/test_pet_api.py
- +3 −9 samples/client/petstore/python/tests/test_pet_model.py
Oops, something went wrong.
0 comments on commit
a6b7f60