File tree 7 files changed +47
-17
lines changed
7 files changed +47
-17
lines changed Original file line number Diff line number Diff line change @@ -194,4 +194,14 @@ Based on:
194
194
### Generated
195
195
- [ python v0.10.0] .
196
196
### Releases
197
- - [ PyPI v0.10.0] https://pypi.org/project/unstructured-client/0.10.0 - .
197
+ - [ PyPI v0.10.0] https://pypi.org/project/unstructured-client/0.10.0 - .
198
+
199
+ ## 2023-10-20 16:36:20
200
+ ### Changes
201
+ Based on:
202
+ - OpenAPI Doc 0.0.1
203
+ - Speakeasy CLI 1.102.1 (2.166.0) https://github.com/speakeasy-api/speakeasy
204
+ ### Generated
205
+ - [ python v0.11.0] .
206
+ ### Releases
207
+ - [ PyPI v0.11.0] https://pypi.org/project/unstructured-client/0.11.0 - .
Original file line number Diff line number Diff line change 3
3
4
4
## Fields
5
5
6
- | Field | Type | Required | Description |
7
- | ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8
- | ` detail ` | List[ * ValidationError* ] | :heavy_minus_sign : | N/A |
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------- ----------------------- |
8
+ | ` detail ` | List[[ ValidationError] ( ../../models/errors/validationerror.md )] | :heavy_minus_sign : | N/A |
Original file line number Diff line number Diff line change @@ -2,31 +2,34 @@ configVersion: 1.0.0
2
2
management :
3
3
docChecksum : 25324f1821b1070aa4a416ec8ddca590
4
4
docVersion : 0.0.1
5
- speakeasyVersion : 1.101.0
6
- generationVersion : 2.161 .0
5
+ speakeasyVersion : 1.102.1
6
+ generationVersion : 2.166 .0
7
7
generation :
8
8
comments :
9
9
disableComments : false
10
10
omitDescriptionIfSummaryPresent : false
11
11
baseServerURL : " "
12
+ repoURL : https://github.com/Unstructured-IO/unstructured-python-client.git
12
13
sdkClassName : unstructured_client
13
14
singleTagPerOp : false
14
15
tagNamespacingDisabled : false
15
16
features :
16
17
python :
17
- core : 3.0.2
18
- downloadStreams : 0.0.1
18
+ core : 3.2.3
19
19
examples : 2.81.3
20
20
globalSecurity : 2.82.0
21
21
globalServerURLs : 2.82.0
22
22
nameOverrides : 2.81.1
23
23
retries : 2.82.0
24
24
serverIDs : 2.81.1
25
25
python :
26
- version : 0.10 .0
26
+ version : 0.11 .0
27
27
author : Unstructured
28
28
clientServerStatusCodesAsErrors : true
29
29
description : Python Client SDK for Unstructured API
30
30
flattenGlobalSecurity : true
31
+ installationURL : https://github.com/Unstructured-IO/unstructured-python-client.git
31
32
maxMethodParams : 0
32
33
packageName : unstructured-client
34
+ published : true
35
+ repoSubDirectory : .
Original file line number Diff line number Diff line change 10
10
11
11
setuptools .setup (
12
12
name = "unstructured-client" ,
13
- version = "0.10 .0" ,
13
+ version = "0.11 .0" ,
14
14
author = "Unstructured" ,
15
15
description = "Python Client SDK for Unstructured API" ,
16
16
long_description = long_description ,
Original file line number Diff line number Diff line change @@ -13,13 +13,10 @@ class ValidationErrorLoc:
13
13
14
14
15
15
@dataclass_json (undefined = Undefined .EXCLUDE )
16
-
17
16
@dataclasses .dataclass
18
- class ValidationError ( Exception ) :
17
+ class ValidationError :
19
18
loc : List [Union [str , int ]] = dataclasses .field (metadata = {'dataclasses_json' : { 'letter_case' : utils .get_field_name ('loc' ) }})
20
19
msg : str = dataclasses .field (metadata = {'dataclasses_json' : { 'letter_case' : utils .get_field_name ('msg' ) }})
21
20
type : str = dataclasses .field (metadata = {'dataclasses_json' : { 'letter_case' : utils .get_field_name ('type' ) }})
22
21
23
22
24
- def __str__ (self ) -> str :
25
- return utils .marshal_json (self )
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ class SDKConfiguration:
26
26
server : str = ''
27
27
language : str = 'python'
28
28
openapi_doc_version : str = '0.0.1'
29
- sdk_version : str = '0.10 .0'
30
- gen_version : str = '2.161 .0'
31
- user_agent : str = 'speakeasy-sdk/python 0.10 .0 2.161 .0 0.0.1 unstructured-client'
29
+ sdk_version : str = '0.11 .0'
30
+ gen_version : str = '2.166 .0'
31
+ user_agent : str = 'speakeasy-sdk/python 0.11 .0 2.166 .0 0.0.1 unstructured-client'
32
32
retry_config : RetryConfig = None
33
33
34
34
def get_server_details (self ) -> Tuple [str , Dict [str , str ]]:
Original file line number Diff line number Diff line change @@ -759,6 +759,8 @@ def bigintencode(val: int):
759
759
760
760
761
761
def bigintdecoder (val ):
762
+ if isinstance (val , float ):
763
+ raise ValueError (f"{ val } is a float" )
762
764
return int (val )
763
765
764
766
@@ -828,6 +830,24 @@ def list_decode(val: List):
828
830
829
831
return list_decode
830
832
833
+ def union_encoder (all_encoders : Dict [str , Callable ]):
834
+ def selective_encoder (val : any ):
835
+ if type (val ) in all_encoders :
836
+ return all_encoders [type (val )](val )
837
+ return val
838
+ return selective_encoder
839
+
840
+ def union_decoder (all_decoders : List [Callable ]):
841
+ def selective_decoder (val : any ):
842
+ decoded = val
843
+ for decoder in all_decoders :
844
+ try :
845
+ decoded = decoder (val )
846
+ break
847
+ except (TypeError , ValueError ):
848
+ continue
849
+ return decoded
850
+ return selective_decoder
831
851
832
852
def get_field_name (name ):
833
853
def override (_ , _field_name = name ):
You can’t perform that action at this time.
0 commit comments