1616import re # noqa: F401
1717import json
1818
19- from pydantic import BaseModel , ConfigDict , Field , StrictBool , StrictFloat , StrictInt , StrictStr
20- from typing import Any , ClassVar , Dict , List , Optional , Union
19+ from pydantic import BaseModel , ConfigDict , Field , StrictBool , StrictInt , StrictStr
20+ from typing import Any , ClassVar , Dict , List , Optional
2121from typing import Optional , Set
2222from typing_extensions import Self
2323
@@ -36,9 +36,7 @@ class FunctionsDetailResponse(BaseModel):
3636 sha_256_hash : StrictStr
3737 debug_hash : Optional [StrictStr ]
3838 debug : StrictBool
39- embedding_3d : Optional [List [Union [StrictFloat , StrictInt ]]] = None
40- embedding_1d : Optional [List [Union [StrictFloat , StrictInt ]]] = None
41- __properties : ClassVar [List [str ]] = ["function_id" , "function_name" , "function_name_mangled" , "function_vaddr" , "function_size" , "analysis_id" , "binary_id" , "binary_name" , "sha_256_hash" , "debug_hash" , "debug" , "embedding_3d" , "embedding_1d" ]
39+ __properties : ClassVar [List [str ]] = ["function_id" , "function_name" , "function_name_mangled" , "function_vaddr" , "function_size" , "analysis_id" , "binary_id" , "binary_name" , "sha_256_hash" , "debug_hash" , "debug" ]
4240
4341 model_config = ConfigDict (
4442 populate_by_name = True ,
@@ -84,16 +82,6 @@ def to_dict(self) -> Dict[str, Any]:
8482 if self .debug_hash is None and "debug_hash" in self .model_fields_set :
8583 _dict ['debug_hash' ] = None
8684
87- # set to None if embedding_3d (nullable) is None
88- # and model_fields_set contains the field
89- if self .embedding_3d is None and "embedding_3d" in self .model_fields_set :
90- _dict ['embedding_3d' ] = None
91-
92- # set to None if embedding_1d (nullable) is None
93- # and model_fields_set contains the field
94- if self .embedding_1d is None and "embedding_1d" in self .model_fields_set :
95- _dict ['embedding_1d' ] = None
96-
9785 return _dict
9886
9987 @classmethod
@@ -116,9 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
116104 "binary_name" : obj .get ("binary_name" ),
117105 "sha_256_hash" : obj .get ("sha_256_hash" ),
118106 "debug_hash" : obj .get ("debug_hash" ),
119- "debug" : obj .get ("debug" ),
120- "embedding_3d" : obj .get ("embedding_3d" ),
121- "embedding_1d" : obj .get ("embedding_1d" )
107+ "debug" : obj .get ("debug" )
122108 })
123109 return _obj
124110
0 commit comments