Justin Black 73c55c11dd [Python-experimental] types now classes, adds additionalProperties handling (#4154)
* Changes python-experimental types to classes, adds additionalalproperties handling

Adds model_utils update, updates model.mustache

Updates api.mustache and uses model_to_dict in model_normal.mustache

Updates requirements.mustache for PythonClientExperimental

Passes through check_type when deserializing models

Converts types from strings to classes in PythonClientExperimentalCodegen.java and PythonTest.java

Creates PythonClientExperimentalTest.java

Updates toInstantiationType to use ModelUtils.xxx

Corrects docstring descriptions of response_type

Updates python-experimental typing, partially fixes deserialization tests

Adds fixes for some of the deserialization tests

Fixes deserialization tests

Switches model teplates to use allVars so allof props will be included

Fixes tests.test_enum_arrays

Fixes test_to_str

Adds additional_properties_type, fixes teast_todict in test_map_test.py

Correctly check the type of _request_timeout values

Fixes test_upload_file test

Turns off coercion when instantiating model types with client data

Updates file handling to input and output an open file object

Fixes linting errors

Adds fixes for python2 tests, linting fixes

Adds additionalproperties to docs + tests

Regenerates python-experimatal client

* Regenerates python-experimental client

* Updates windows python-experimental bat file

* Fixes addModelImport so client generation will work with the v2 spec

* Reverts PythonClientCodegen.java

* Acutally revert PythonClientCodegen.java

* Updates the sample example for file_type in docs

* Silences line too long error for python models so CI tests pass

* Fixes handling of file uploads, adds tests for uploading files

* Removes comment

* Fixes mock installation in python2

* Limit mock addition to python-experimental test requirements only

* Removes SmartBear copyright line
2019-10-28 21:24:31 +08:00

1.7 KiB

XmlItem

Properties

Name Type Description Notes
attribute_string str [optional]
attribute_number float [optional]
attribute_integer int [optional]
attribute_boolean bool [optional]
wrapped_array [int] [optional]
name_string str [optional]
name_number float [optional]
name_integer int [optional]
name_boolean bool [optional]
name_array [int] [optional]
name_wrapped_array [int] [optional]
prefix_string str [optional]
prefix_number float [optional]
prefix_integer int [optional]
prefix_boolean bool [optional]
prefix_array [int] [optional]
prefix_wrapped_array [int] [optional]
namespace_string str [optional]
namespace_number float [optional]
namespace_integer int [optional]
namespace_boolean bool [optional]
namespace_array [int] [optional]
namespace_wrapped_array [int] [optional]
prefix_ns_string str [optional]
prefix_ns_number float [optional]
prefix_ns_integer int [optional]
prefix_ns_boolean bool [optional]
prefix_ns_array [int] [optional]
prefix_ns_wrapped_array [int] [optional]

[Back to Model list] [Back to API list] [Back to README]