[split-upload 2/6] f2fd4fa backup via proxy
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""验证 OpenAPI 文档中 QuickRuleResponse 字段已修复"""
|
||||
import json
|
||||
import sys
|
||||
|
||||
OPENAPI = "/tmp/openapi.json"
|
||||
|
||||
with open(OPENAPI) as f:
|
||||
data = json.load(f)
|
||||
|
||||
schemas = data.get("components", {}).get("schemas", {})
|
||||
|
||||
# 查找所有包含 quick 的 schema
|
||||
candidates = [k for k in schemas.keys() if "quick" in k.lower() or "QuickRule" in k]
|
||||
print(f"Found schemas: {candidates}")
|
||||
|
||||
# 查找所有包含 priority 的 schema
|
||||
for name, sch in schemas.items():
|
||||
props = sch.get("properties", {})
|
||||
if "priority" in props:
|
||||
print(f"\n{name} contains 'priority':")
|
||||
print(json.dumps(sch, indent=2, ensure_ascii=False))
|
||||
print()
|
||||
Reference in New Issue
Block a user