William Cheng
c50a775e0c
prepare 6.5.0 release ( #14749 )
2023-02-19 20:36:23 +08:00
William Cheng
93df0ff444
Prepare 6.4.0 release ( #14748 )
...
* prepare 6.4.0 release
* update samples
2023-02-19 18:53:20 +08:00
William Cheng
31a89e35cb
Prepare 6.4.0 ( #14582 )
...
* update to 6.4.0 snapshot
* update samples
* update doc
2023-02-01 22:44:40 +08:00
William Cheng
8f2676c5c2
Prepare v6.3.0 release ( #14580 )
...
* 6.3.0 release
* fix maven plugin test
* update samples
* update doc
* fix tests in windows
2023-02-01 20:52:29 +08:00
Mustansir Soni
4667b7e471
[ #13954 ] Allows args and arg as schema properties in python client ( #13955 )
...
* Add args to reserved words
* arg and args to _arg and _args in templates
* Corrections
* Test added
* Corrections
* Use arg and args as defined properties
* Removed unnecessary assertion
* Suggested change
2022-11-09 11:10:29 -08:00
William Cheng
2947d147b4
Merge remote-tracking branch 'origin/master' into 6.3.x
2022-11-01 17:42:59 +08:00
William Cheng
b0ce532bdc
Prepare 6.2.1 release ( #13871 )
...
* prepare 6.2.1 release
* revert change
* fix maven plugin test
* update meta
2022-11-01 17:16:46 +08:00
Justin Black
ac3bb6830a
[python] Fixes endpoint overload type hint + required property not in properties ( #13790 )
...
* Adds endpoint overload type hint fix to template
* Samples regenerated
* Adds fix for required property not in properties
* Regenerates samples
2022-10-21 18:50:30 -07:00
William Cheng
4d03c9272b
prepare 6.3.0 snapshot
2022-10-15 15:40:47 +08:00
Justin Black
57f5cc4000
[python] fixes bugs ( #13581 )
...
* Adds bug fixes
* Samples and docs regenerated
* Samples regenerated
2022-10-03 11:15:16 -07:00
William Cheng
ac7ebf67dd
Prepare 6.2.1 ( #13517 )
...
* update to 6.2.1-SNAPSHOT
* update samples
* update doc
2022-09-25 00:10:30 +08:00
William Cheng
24f476a381
prepare 6.2.0 release ( #13514 )
...
* set release version to 6.2.0
* update samples
* comment out rust server test in travis
2022-09-24 21:44:42 +08:00
Justin Black
7e73645303
Switches python-experimental in as the primary python client ( #13501 )
...
* Changes python to python-prior
* python -> python-prior, python-experimental->python
* Renames sample spec directories
* Samples regnerated
* Regenerates docs
* Fixes test
* Samples regenerated
* Updates renerators list
* Fixes made to python paths in pom.xml
* Fixes node4 sh file paths
2022-09-24 16:19:38 +08:00
William Cheng
928070c57a
Prepare 6.1.1 SNAPSHOT version ( #13399 )
...
* prepare v6.1.1
* update samples
* update doc
2022-09-11 19:08:23 +08:00
William Cheng
43dbb5ff9c
6.1.0 release ( #13398 )
2022-09-11 17:16:07 +08:00
William Cheng
6cae0fbb78
Merge remote-tracking branch 'origin/6.1.x'
2022-07-04 01:22:51 +08:00
William Cheng
9e412edb64
Prepare 6.0.1 release ( #12762 )
...
* update to v6.0.1
* update doc
* update samples
2022-07-03 23:36:46 +08:00
Akhil Nair
e823290c8f
[PYTHON] GetItem not working for Client generated allOf model and broken since 5.2.0 ( #12239 )
...
* I feel the issue is due to the creation of self._var_name_to_model_instances while doing the deserialization of the data.
Earlier the Python SDK code was using get_var_name_to_model_instances function which was adding var name to model instances that contain it. So <class 'openapi_client.model.stream_options_all_of'> will not part of mapping in self._var_name_to_model_instances for variable name stream_options.
Now with the latest Python SDK code following is the way through which var_name_to_model_instances is created:
for prop_name in model_args:
if prop_name not in discarded_args:
var_name_to_model_instances[prop_name] = [self] + composed_instances
Now as we can see that the var_name_to_model_instances is populated with self and composed_instance which will also contain stream_options_all_of as a composed instance and there will be no check that if stream_options is present in composed_instances or not.
As there is no attribute_mapping found for stream_options in stream_options_all_of, the type for stream_options will be treated as dict for mapping stream_options_all_of as mentioned by @Chekov2k.
So what I suggest is the following code:
for prop_name in model_args:
if prop_name not in discarded_args:
var_name_to_model_instances[prop_name] = [self] + list(
filter(
lambda x: prop_name in x.openapi_types, composed_instances))
This way we can check if the property name is present in that composed instance or not. If it's okay for @spacether I can raise a PR for this.
* [get_item_all_of_bug]
Added samples, test cases to validate all_of schema.
* [getiem_all_of_bug]
Updated docs and samples.
* [getiem_all_of_bug]
Updated test cases, docs and samples.
2022-05-27 21:09:48 -07:00
William Cheng
5bd94b8fa0
prepare 6.1.x
2022-05-26 12:58:25 +08:00
William Cheng
36a9cf394d
update samples ( #12466 )
2022-05-26 12:13:59 +08:00
William Cheng
69f79fb789
Prepare 6.0.0 release ( #12463 )
...
* prepare 6.0.0 release
* update samples
* update meta codegen
2022-05-26 10:28:01 +08:00
William Cheng
12cdacabbf
[Inline model resolver] better handling of inline responses and bug fixes ( #12353 )
...
* better handling of inline response schemas, bug fixes
* update samples
* add new files
* better code format
* remove unused ruby files
* fix java test
* remove unused js spec files
* remove inline_response_default_test.dart
* fix webclient tests
* fix spring tests
2022-05-13 10:17:59 +08:00
William Cheng
ad3b5f7045
[Inline model resolver] various improvements ( #12293 )
...
* better handling of requestbody in the inline resolver
* remove commented code
* better request body naming
* fix unique naming
* minor code format change
* removed additional underscore from names, fix test
* more fixes, update tests
* fix all tests
* undo changes to default codegen
* update samples
* update python tests
* add new files
* update samples
2022-05-10 17:13:57 +08:00
William Cheng
2d4a01aa70
Revert "Prepare 6.0.0 beta release ( #12039 )"
...
This reverts commit 914b539eea7097ad2b4323d20c8f95144782cb68.
2022-04-04 12:17:12 +08:00
William Cheng
914b539eea
Prepare 6.0.0 beta release ( #12039 )
...
* update to 6.0.0-beta
* update samples
2022-04-04 10:29:49 +08:00
jiangyuan
dce8b80af7
[Python] fix api file name & api var name ( #11051 )
...
* fix api filename
* fix PythonCodeGen toApiVarName
* add samples change
2022-02-14 11:27:13 +08:00
William Cheng
c8b84c4d03
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-30 18:01:35 +08:00
jiangyuan
8b3cad0692
[Python] fix model to dict ( #11234 )
...
* fix model to dict
* add unit test
* add unit test
* update sample files
2022-01-25 09:50:59 -08:00
Justin Black
ac55ac9d55
Samples and docs regenerated ( #11194 )
2021-12-28 11:39:13 -08:00
William Cheng
6269a9810c
Prepare 5.3.1 release ( #11161 )
...
* prepare v5.3.1 release
* update samples
2021-12-21 18:20:13 +08:00
WILLIAM CHENG
29be352deb
Merge remote-tracking branch 'origin/5.4.x' into 6.0.x
2021-11-02 12:59:35 +08:00
WILLIAM CHENG
025e560985
Merge remote-tracking branch 'origin/master' into 5.4.x
2021-11-02 12:51:52 +08:00
Justin Black
7559b53370
Feat adds python AnyOf send and receive example ( #10754 )
...
* Samples regenerated
* Adds AnyOf tx/rx example to python
* Updates samples
2021-11-01 12:15:45 -07:00
WILLIAM CHENG
42f4e863b7
prepare 5.4.0-SNAPSHOT
2021-10-25 12:13:33 +08:00
William Cheng
378465702c
Prepare v5.3.1 in the master ( #10681 )
...
* prepare v5.3.1
* update doc
* update readme
2021-10-25 01:16:07 +08:00
William Cheng
0357b80f19
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-09-01 14:16:17 +08:00
Vikrant Balyan
f2e994271f
[Python] fixes __setitem__ throwing an error for composed instance ( #10197 )
...
* adding a test for issues 10083
* commiting the generated files
* fix for the setattr issue
* commit generated files
Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
2021-08-22 10:44:19 -07:00
William Cheng
b799ca9ee0
Merge remote-tracking branch 'origin/5.3.x' into 6.0.x
2021-07-27 11:52:19 +08:00
William Cheng
56aafe30d9
Merge remote-tracking branch 'origin/master' into 5.3.x
2021-07-27 11:33:35 +08:00
William Cheng
05e4c3cf64
update samples
2021-07-12 17:15:22 +08:00
William Cheng
35f933b27f
Merge remote-tracking branch 'origin/5.3.x' into 6.0.x
2021-07-12 17:11:35 +08:00
Justin Black
11515da053
Python client - fixes boolean enum use case ( #9926 )
...
* Adds boolean enum component and object property and tests of it
* Regenerates samples
* Passes needed locale argument to toUpperCase
* Regenerates samples
2021-07-09 18:55:22 -07:00
William Cheng
39fbf53150
create v5.3.0
2021-07-10 00:12:23 +08:00
William Cheng
02835b35bc
Prepare v5.2.1 ( #9922 )
...
* bump verions to 5.2.1-SNAPSHOT
* update samples
* update readme
* fix gradle properties
2021-07-09 22:42:31 +08:00
William Cheng
90f7bcd909
Prepare v5.2.0 release ( #9920 )
...
* 5.2.0 release
* update samples
* update meta codegen
2021-07-09 17:06:55 +08:00
Justin Black
fb3aed6dc4
Fixes python test_fake_api tests ( #9483 )
...
* Fixes test_upload_download_file
* Fixes test_string
* Fixes test_string_enum
* Fixes test_number_with_validations test_composed_one_of_number_with_validations
* Fixes two more tests
* Fixes test_array_of_enums
* Fixes two tests
* Removes comment
* Fixes serializationf of composed schema object models, fixes test
* Samples regenerated
* Removes pdb
2021-05-17 20:15:53 -07:00
William Cheng
5e29d61639
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-05-13 18:44:58 +08:00
gbmarc1
c966b5fe1f
[python] readonly constructors ( #9409 )
...
* readonly
* other tests
* doc
* python samples
* model utils
2021-05-10 18:41:26 -07:00
William Cheng
3e58b0908c
Merge remote-tracking branch 'origin/5.2.x' into 6.0.x
2021-04-28 18:08:24 +08:00
William Cheng
37eaf70755
Merge remote-tracking branch 'origin/master' into 5.2.x
2021-04-28 17:48:21 +08:00