File tree Expand file tree Collapse file tree 7 files changed +47
-17
lines changed Expand file tree Collapse file tree 7 files changed +47
-17
lines changed Original file line number Diff line number Diff line change @@ -194,4 +194,14 @@ Based on:
194194### Generated
195195- [ python v0.10.0] .
196196### 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 33
44## Fields
55
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
22management :
33 docChecksum : 25324f1821b1070aa4a416ec8ddca590
44 docVersion : 0.0.1
5- speakeasyVersion : 1.101.0
6- generationVersion : 2.161 .0
5+ speakeasyVersion : 1.102.1
6+ generationVersion : 2.166 .0
77generation :
88 comments :
99 disableComments : false
1010 omitDescriptionIfSummaryPresent : false
1111 baseServerURL : " "
12+ repoURL : https://github.com/Unstructured-IO/unstructured-python-client.git
1213 sdkClassName : unstructured_client
1314 singleTagPerOp : false
1415 tagNamespacingDisabled : false
1516features :
1617 python :
17- core : 3.0.2
18- downloadStreams : 0.0.1
18+ core : 3.2.3
1919 examples : 2.81.3
2020 globalSecurity : 2.82.0
2121 globalServerURLs : 2.82.0
2222 nameOverrides : 2.81.1
2323 retries : 2.82.0
2424 serverIDs : 2.81.1
2525python :
26- version : 0.10 .0
26+ version : 0.11 .0
2727 author : Unstructured
2828 clientServerStatusCodesAsErrors : true
2929 description : Python Client SDK for Unstructured API
3030 flattenGlobalSecurity : true
31+ installationURL : https://github.com/Unstructured-IO/unstructured-python-client.git
3132 maxMethodParams : 0
3233 packageName : unstructured-client
34+ published : true
35+ repoSubDirectory : .
Original file line number Diff line number Diff line change 1010
1111setuptools .setup (
1212 name = "unstructured-client" ,
13- version = "0.10 .0" ,
13+ version = "0.11 .0" ,
1414 author = "Unstructured" ,
1515 description = "Python Client SDK for Unstructured API" ,
1616 long_description = long_description ,
Original file line number Diff line number Diff line change @@ -13,13 +13,10 @@ class ValidationErrorLoc:
1313
1414
1515@dataclass_json (undefined = Undefined .EXCLUDE )
16-
1716@dataclasses .dataclass
18- class ValidationError ( Exception ) :
17+ class ValidationError :
1918 loc : List [Union [str , int ]] = dataclasses .field (metadata = {'dataclasses_json' : { 'letter_case' : utils .get_field_name ('loc' ) }})
2019 msg : str = dataclasses .field (metadata = {'dataclasses_json' : { 'letter_case' : utils .get_field_name ('msg' ) }})
2120 type : str = dataclasses .field (metadata = {'dataclasses_json' : { 'letter_case' : utils .get_field_name ('type' ) }})
2221
2322
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:
2626 server : str = ''
2727 language : str = 'python'
2828 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'
3232 retry_config : RetryConfig = None
3333
3434 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):
759759
760760
761761def bigintdecoder (val ):
762+ if isinstance (val , float ):
763+ raise ValueError (f"{ val } is a float" )
762764 return int (val )
763765
764766
@@ -828,6 +830,24 @@ def list_decode(val: List):
828830
829831 return list_decode
830832
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
831851
832852def get_field_name (name ):
833853 def override (_ , _field_name = name ):
You can’t perform that action at this time.
0 commit comments