csc-cia-stne 0.1.12__py3-none-any.whl → 0.1.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,12 +117,20 @@ class UploadFilesValidator(BaseModel):
117
117
  raise ValueError(f"O parametro '{info.field_name}' deve ser uma string e não um {type(value)} e não vazio")
118
118
  return value
119
119
 
120
+ #@field_validator("destination")
121
+ #def check_destination(cls, value, info):
122
+ # if not isinstance(value, str) or value is not None:
123
+ # raise ValueError(f"O parametro '{info.field_name}' deve ser uma string e não um {type(value)}")
124
+ # return value
125
+
120
126
  @field_validator("destination")
121
127
  def check_destination(cls, value, info):
122
- if not isinstance(value, str) or value is not None:
123
- raise ValueError(f"O parametro '{info.field_name}' deve ser uma string e não um {type(value)}")
124
- return value
125
-
128
+ # CORREÇÃO: checar None e vazio (antes estava 'value is not None')
129
+ if value is None or not isinstance(value, str) or not value.strip():
130
+ raise ValueError(
131
+ f"O parametro '{info.field_name}' deve ser uma string não vazia; recebido {type(value)}"
132
+ )
133
+ return value.strip()
126
134
  class DeleteFilesValidator(BaseModel):
127
135
  """
128
136
  Classe DeleteFilesValidator
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csc_cia_stne
3
- Version: 0.1.12
3
+ Version: 0.1.13
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
6
  Keywords: karavela,csc,cia,stone,rpa,botcity,stne
@@ -31,15 +31,15 @@ csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py,sha256=Q1oZTae4hDJ2
31
31
  csc_cia_stne/utilitarios/validations/ServiceNowValidator.py,sha256=yleKUIo1ZfyloP9fDPNjv3JJXdLcocT81WIgRSYmqEA,14423
32
32
  csc_cia_stne/utilitarios/validations/__init__.py,sha256=O_qyEU2ji3u6LHUXZCXvUFsMpoMWL625qqHTXyXivTA,106
33
33
  csc_cia_stne/utilitarios/validations/ftp.py,sha256=LNYyS2c8eou3ML23bBtn87xJFIKSrb8w-2acG0Zugog,4988
34
- csc_cia_stne/utilitarios/validations/gcp_bucket.py,sha256=dbZ4MMHSeW61Fa8CPOEHxkNwd8oCb3dUWSV-j4mwNSU,5806
34
+ csc_cia_stne/utilitarios/validations/gcp_bucket.py,sha256=E94UCoph9FPo0y2y6UnGOO-zqJFfaHqRAXHWXee7FtM,6229
35
35
  csc_cia_stne/utilitarios/validations/waccess.py,sha256=8yfOrmIPUSLzbCt6P0F6vj3FkSgU_RgrJpJlRhlLyV0,7352
36
36
  csc_cia_stne/utilitarios/validations/web_validator.py,sha256=HYKYSpDv1RvRjZIuwTPt-AbEz-9392MxM_O329iYuSA,5722
37
37
  csc_cia_stne/utilitarios/web_screen/__init__.py,sha256=5QcOPXKd95SvP2DoZiHS0gaU68GlyFD9pQ9kae_9D1Q,100
38
38
  csc_cia_stne/utilitarios/web_screen/web_screen_abstract.py,sha256=PjL8Vgfj_JdKidia7RFyCkro3avYLQu4RZRos41sh3w,3241
39
39
  csc_cia_stne/utilitarios/web_screen/web_screen_botcity.py,sha256=Xi5YJjl2pcxlX3OimqcBWRNXZEpAE7asyUjDJ4Oho5U,12297
40
40
  csc_cia_stne/utilitarios/web_screen/web_screen_selenium.py,sha256=JLIcPJE9ZX3Pd6zG6oTRMqqUAY063UzLY3ReRlxmiSM,15581
41
- csc_cia_stne-0.1.12.dist-info/licenses/LICENCE,sha256=LPGMtgKki2C3KEZP7hDhA1HBrlq5JCHkIeStUCLEMx4,1073
42
- csc_cia_stne-0.1.12.dist-info/METADATA,sha256=JGpOuog8gKnRTIA-spdZ5oxvTCoa2Rh4wh_1lgZ2fIs,1464
43
- csc_cia_stne-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
- csc_cia_stne-0.1.12.dist-info/top_level.txt,sha256=ldo7GVv3tQx5KJvwBzdZzzQmjPys2NDVVn1rv0BOF2Q,13
45
- csc_cia_stne-0.1.12.dist-info/RECORD,,
41
+ csc_cia_stne-0.1.13.dist-info/licenses/LICENCE,sha256=LPGMtgKki2C3KEZP7hDhA1HBrlq5JCHkIeStUCLEMx4,1073
42
+ csc_cia_stne-0.1.13.dist-info/METADATA,sha256=U9YlaEJ11OOOncYpnAmoxkoLezq5ZIeK6EzokvVdbdo,1464
43
+ csc_cia_stne-0.1.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
+ csc_cia_stne-0.1.13.dist-info/top_level.txt,sha256=ldo7GVv3tQx5KJvwBzdZzzQmjPys2NDVVn1rv0BOF2Q,13
45
+ csc_cia_stne-0.1.13.dist-info/RECORD,,