|
|
@@ -6,10 +6,10 @@ swag init --parseDependency --parseInternal --output ./docs |
|
|
|
# 提取带有 "open" 标签的路径 |
|
|
|
jq '.paths | with_entries( |
|
|
|
select( |
|
|
|
(.value.post?.tags? | type == "array" and any(. == "数据中心------OPEN")) or |
|
|
|
(.value.get?.tags? | type == "array" and any(. == "数据中心------OPEN")) or |
|
|
|
(.value.put?.tags? | type == "array" and any(. == "数据中心------OPEN")) or |
|
|
|
(.value.delete?.tags? | type == "array" and any(. == "数据中心------OPEN")) |
|
|
|
(.value.post?.tags? | type == "array" and any(. == "数据中心-----OPEN")) or |
|
|
|
(.value.get?.tags? | type == "array" and any(. == "数据中心-----OPEN")) or |
|
|
|
(.value.put?.tags? | type == "array" and any(. == "数据中心-----OPEN")) or |
|
|
|
(.value.delete?.tags? | type == "array" and any(. == "数据中心-----OPEN")) |
|
|
|
) |
|
|
|
) // {} as $filtered_paths | . * { paths: $filtered_paths }' docs/swagger.json > open_paths.json |
|
|
|
|
|
|
|