uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Syntax and options for `uip api-workflow validate`, which checks an API Workflow JSON file's structure before packaging or running it.
uip api-workflow validate checks an API Workflow JSON file's structure — task shapes, expressions, and metadata — against schema, without executing it. Use it as a fast pre-flight check before run or pack.
大纲
uip api-workflow validate <file> [options]
uip api-workflow validate <file> [options]
<file>— path to the API Workflow JSON file to validate.
选项
| 标记 | 描述 |
|---|---|
--verbose | Enable verbose logging, including a stack trace if validation itself throws. |
示例
uip api-workflow validate ./workflow.json
uip api-workflow validate ./workflow.json
uip api-workflow validate ./workflow.json --verbose
uip api-workflow validate ./workflow.json --verbose
数据形状(--输出 json)
{
"Code": "ApiwfValidate",
"Data": {
"File": "/abs/path/to/workflow.json",
"Status": "Valid"
}
}
{
"Code": "ApiwfValidate",
"Data": {
"File": "/abs/path/to/workflow.json",
"Status": "Valid"
}
}
When validation passes with warnings, Data adds a Warnings field summarizing the count and each warning's path and message. When validation fails (errors present), the command exits non-zero and reports a Failure result whose Instructions field lists every issue found, each tagged [error] or [warning] with its JSON path.
相关内容
- uip api-workflow run — execute the workflow after it validates clean.
- uip api-workflow pack — 打包经过验证的工作流,以进行发布。