synapse-sdk 1.0.0a86__py3-none-any.whl → 1.0.0a87__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.

Potentially problematic release.


This version of synapse-sdk might be problematic. Click here for more details.

@@ -3,7 +3,7 @@ from typing import Any, Dict, List, Optional
3
3
  from synapse_sdk.plugins.categories.data_validation.actions.validation import ValidationDataStatus, ValidationResult
4
4
 
5
5
 
6
- def validate(data: Optional[Dict[str, Any]] = None, **kwargs: Any) -> ValidationResult:
6
+ def validate(data: Optional[Dict[str, Any]] = None, **kwargs: Any) -> Dict[str, Any]:
7
7
  """Validate data with assignment data.
8
8
 
9
9
  * Custom validation logic can be added here.
@@ -15,7 +15,7 @@ def validate(data: Optional[Dict[str, Any]] = None, **kwargs: Any) -> Validation
15
15
  **kwargs: Additional arguments.
16
16
 
17
17
  Returns:
18
- ValidationResult: The validation result with status and errors.
18
+ Dict[str, Any]: The validation result as a dictionary with ValidationResult structure.
19
19
  """
20
20
  errors: List[str] = []
21
21
 
@@ -26,4 +26,8 @@ def validate(data: Optional[Dict[str, Any]] = None, **kwargs: Any) -> Validation
26
26
  # Determine status based on errors
27
27
  status = ValidationDataStatus.FAILED if errors else ValidationDataStatus.SUCCESS
28
28
 
29
- return ValidationResult(status=status, errors=errors)
29
+ # DO NOT MODIFY BELOW THIS LINE - Validation result should be returned as a dumped ValidationResult.
30
+ validation_result = ValidationResult(status=status, errors=errors)
31
+ result_dict = validation_result.model_dump()
32
+ result_dict['status'] = status.value
33
+ return result_dict
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: synapse-sdk
3
- Version: 1.0.0a86
3
+ Version: 1.0.0a87
4
4
  Summary: synapse sdk
5
5
  Author-email: datamaker <developer@datamaker.io>
6
6
  License: MIT
@@ -120,7 +120,7 @@ synapse_sdk/plugins/categories/data_validation/actions/__init__.py,sha256=47DEQp
120
120
  synapse_sdk/plugins/categories/data_validation/actions/validation.py,sha256=E6irjH3aylnS_nIlXVDdqwpkvMxlTwzmedYeXj5sgSk,2262
121
121
  synapse_sdk/plugins/categories/data_validation/templates/config.yaml,sha256=Hijb-b3hy0msZsTV_bbr3Hvlk8ok-Rk0a05mlLGTCAg,66
122
122
  synapse_sdk/plugins/categories/data_validation/templates/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
123
- synapse_sdk/plugins/categories/data_validation/templates/plugin/validation.py,sha256=_K1fAp027Q75msY-H_Vyv3hb60A4OthE2nmHtXjSCNw,1011
123
+ synapse_sdk/plugins/categories/data_validation/templates/plugin/validation.py,sha256=O-5eFC-njZzt7tAZlIRAG2UT_zhMEYDrio1e2g4UjVY,1263
124
124
  synapse_sdk/plugins/categories/export/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
125
125
  synapse_sdk/plugins/categories/export/enums.py,sha256=gtyngvQ1DKkos9iKGcbecwTVQQ6sDwbrBPSGPNb5Am0,127
126
126
  synapse_sdk/plugins/categories/export/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -221,9 +221,9 @@ synapse_sdk/utils/storage/providers/gcp.py,sha256=i2BQCu1Kej1If9SuNr2_lEyTcr5M_n
221
221
  synapse_sdk/utils/storage/providers/http.py,sha256=2DhIulND47JOnS5ZY7MZUex7Su3peAPksGo1Wwg07L4,5828
222
222
  synapse_sdk/utils/storage/providers/s3.py,sha256=ZmqekAvIgcQBdRU-QVJYv1Rlp6VHfXwtbtjTSphua94,2573
223
223
  synapse_sdk/utils/storage/providers/sftp.py,sha256=_8s9hf0JXIO21gvm-JVS00FbLsbtvly4c-ETLRax68A,1426
224
- synapse_sdk-1.0.0a86.dist-info/licenses/LICENSE,sha256=bKzmC5YAg4V1Fhl8OO_tqY8j62hgdncAkN7VrdjmrGk,1101
225
- synapse_sdk-1.0.0a86.dist-info/METADATA,sha256=Spzp2B5PSKr6fMRT2fiV_UhJtqgGQUmx1hg1-s7cDOY,3805
226
- synapse_sdk-1.0.0a86.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
227
- synapse_sdk-1.0.0a86.dist-info/entry_points.txt,sha256=VNptJoGoNJI8yLXfBmhgUefMsmGI0m3-0YoMvrOgbxo,48
228
- synapse_sdk-1.0.0a86.dist-info/top_level.txt,sha256=ytgJMRK1slVOKUpgcw3LEyHHP7S34J6n_gJzdkcSsw8,12
229
- synapse_sdk-1.0.0a86.dist-info/RECORD,,
224
+ synapse_sdk-1.0.0a87.dist-info/licenses/LICENSE,sha256=bKzmC5YAg4V1Fhl8OO_tqY8j62hgdncAkN7VrdjmrGk,1101
225
+ synapse_sdk-1.0.0a87.dist-info/METADATA,sha256=-LhgfV8srgegizMZWVINMcfRWZk9-gYgK3K6tgmyUok,3805
226
+ synapse_sdk-1.0.0a87.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
227
+ synapse_sdk-1.0.0a87.dist-info/entry_points.txt,sha256=VNptJoGoNJI8yLXfBmhgUefMsmGI0m3-0YoMvrOgbxo,48
228
+ synapse_sdk-1.0.0a87.dist-info/top_level.txt,sha256=ytgJMRK1slVOKUpgcw3LEyHHP7S34J6n_gJzdkcSsw8,12
229
+ synapse_sdk-1.0.0a87.dist-info/RECORD,,