mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-04 15:06:37 +08:00
fix(cordis): satisfy L2 test and swagger gates
This commit is contained in:
+1
-3
@@ -4,10 +4,8 @@ set -eu
|
||||
# execute this first
|
||||
# go install github.com/swaggo/swag/cmd/swag@latest
|
||||
|
||||
# 仅扫描 OpenFlare 自身代码:上游 core/ 与 plugins/ 尚未挂载进装配根(P4 接入),
|
||||
# 且其包名(如 model、disk)与下游注解里的裸名引用冲突,扫描会导致 ParseComment 失败。
|
||||
(
|
||||
cd backend
|
||||
swag init -o docs --parseDependency --parseInternal --exclude plugins,core
|
||||
swag init -o docs --parseDependency --parseInternal
|
||||
)
|
||||
cp backend/docs/swagger.json backend/docs/swagger.yaml docs/
|
||||
|
||||
Reference in New Issue
Block a user