Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ validate
Method
validate
st2common/st2common/fields.py:399–401 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
397
return
data
398
399
def
validate(self, value):
400
value = self.to_mongo(value)
401
return
super(JSONDictField, self).validate(value)
402
403
def
parse_field_value(self, value: Optional[Union[bytes, dict]]) -> dict:
404
""
"
Callers
15
_add_job_to_scheduler
Method · 0.45
test_validate_default_values_are_set
Method · 0.45
test_validate_nested_attribute_with_default_not_provided
Method · 0.45
test_validate_allow_default_none_for_any_type
Method · 0.45
test_validate
Method · 0.45
test_use_default_value
Method · 0.45
test_allow_default_none
Method · 0.45
test_allow_default_explicit_none
Method · 0.45
test_anyof_type_allow_default_none
Method · 0.45
test_anyof_allow_default_explicit_none
Method · 0.45
test_oneof_type_allow_default_none
Method · 0.45
test_oneof_allow_default_explicit_none
Method · 0.45
Calls
1
to_mongo
Method · 0.95
Tested by
13
test_validate_default_values_are_set
Method · 0.36
test_validate_nested_attribute_with_default_not_provided
Method · 0.36
test_validate_allow_default_none_for_any_type
Method · 0.36
test_validate
Method · 0.36
test_use_default_value
Method · 0.36
test_allow_default_none
Method · 0.36
test_allow_default_explicit_none
Method · 0.36
test_anyof_type_allow_default_none
Method · 0.36
test_anyof_allow_default_explicit_none
Method · 0.36
test_oneof_type_allow_default_none
Method · 0.36
test_oneof_allow_default_explicit_none
Method · 0.36
test_nested_schemas
Method · 0.36