Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ condition
Method
condition
st2client/st2client/utils/interactive.py:363–364 ·
view source on GitHub ↗
(spec)
Source
from the content-addressed store, hash-verified
361
362
@staticmethod
363
def
condition(spec):
364
return
spec.get(
"type"
, None) ==
"array"
and
"enum"
in spec.get(
"items"
, {})
365
366
@staticmethod
367
def
validate(input, spec):
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected