MCPcopy Create free account
hub / github.com/StackStorm/st2 / split_id_value

Function split_id_value

st2api/st2api/controllers/resource.py:41–52  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

39
40
41def split_id_value(value):
42 if not value or isinstance(value, (list, tuple)):
43 return value
44
45 split = value.split(",")
46
47 if len(split) > 100:
48 raise ValueError(
49 "Maximum of 100 items can be provided for a query parameter value"
50 )
51
52 return split
53
54
55DEFAULT_FILTER_TRANSFORM_FUNCTIONS = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected