Skip to content

Commit dfe150b

Browse files
authored
Moves functionref to its own definition (#384)
Signed-off-by: Tihomir Surdilovic <[email protected]>
1 parent 755fbca commit dfe150b

File tree

1 file changed

+33
-29
lines changed

1 file changed

+33
-29
lines changed

schema/workflow.json

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -343,35 +343,8 @@
343343
"description": "Unique action definition name"
344344
},
345345
"functionRef": {
346-
"oneOf": [
347-
{
348-
"type": "string",
349-
"description": "Name of the referenced function",
350-
"minLength": 1
351-
},
352-
{
353-
"type": "object",
354-
"description": "Function Reference",
355-
"properties": {
356-
"refName": {
357-
"type": "string",
358-
"description": "Name of the referenced function"
359-
},
360-
"arguments": {
361-
"type": "object",
362-
"description": "Function arguments/inputs"
363-
},
364-
"selectionSet": {
365-
"type": "string",
366-
"description": "Only used if function type is 'graphql'. A string containing a valid GraphQL selection set"
367-
}
368-
},
369-
"additionalProperties": false,
370-
"required": [
371-
"refName"
372-
]
373-
}
374-
]
346+
"description": "References a function to be invoked",
347+
"$ref": "#/definitions/functionref"
375348
},
376349
"eventRef": {
377350
"description": "References a 'trigger' and 'result' reusable event definitions",
@@ -409,6 +382,37 @@
409382
}
410383
]
411384
},
385+
"functionref": {
386+
"oneOf": [
387+
{
388+
"type": "string",
389+
"description": "Name of the referenced function",
390+
"minLength": 1
391+
},
392+
{
393+
"type": "object",
394+
"description": "Function Reference",
395+
"properties": {
396+
"refName": {
397+
"type": "string",
398+
"description": "Name of the referenced function"
399+
},
400+
"arguments": {
401+
"type": "object",
402+
"description": "Function arguments/inputs"
403+
},
404+
"selectionSet": {
405+
"type": "string",
406+
"description": "Only used if function type is 'graphql'. A string containing a valid GraphQL selection set"
407+
}
408+
},
409+
"additionalProperties": false,
410+
"required": [
411+
"refName"
412+
]
413+
}
414+
]
415+
},
412416
"eventref": {
413417
"type": "object",
414418
"description": "Event References",

0 commit comments

Comments
 (0)