Skip to content

Commit 7b07616

Browse files
fix #2199
1 parent e383211 commit 7b07616

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

otoroshi/app/next/workflow/generators.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,26 @@ object WorkflowGenerators {
1313
Json.obj(
1414
"name" -> node.documentationName,
1515
"description" -> node.documentationDescription,
16-
"schema" -> node.documentationInputSchema
16+
"schema" -> node.documentationInputSchema,
17+
"example" -> node.documentationExample
1718
)
1819
}.toSeq),
1920
"functions" -> JsArray(WorkflowFunction.functions.map {
2021
case (key, value) =>
2122
Json.obj(
2223
"name" -> key,
24+
"description" -> value.documentationDescription,
25+
"schema" -> value.documentationInputSchema,
26+
"example" -> value.documentationExample
2327
)
2428
}.toSeq),
2529
"operators" -> JsArray(WorkflowOperator.operators.map {
2630
case (key, value) =>
2731
Json.obj(
2832
"name" -> key,
33+
"description" -> value.documentationDescription,
34+
"schema" -> value.documentationInputSchema,
35+
"example" -> value.documentationExample
2936
)
3037
}.toSeq),
3138
)

0 commit comments

Comments
 (0)