feat(regulatory-info-package): 完善目录页码与组成成分填充
This commit is contained in:
@@ -32,8 +32,8 @@ def validate_template_config(config: dict) -> list[str]:
|
||||
if not source_dir.exists():
|
||||
errors.append(f"模板源目录不存在:{source_dir}")
|
||||
templates = config.get("templates") or []
|
||||
if len(templates) != 7:
|
||||
errors.append("第1章监管信息模板配置必须包含 7 个模板。")
|
||||
if len(templates) != 6:
|
||||
errors.append("第1章监管信息模板配置必须包含 6 个模板。")
|
||||
seen: set[str] = set()
|
||||
for template in templates:
|
||||
code = str(template.get("code") or "")
|
||||
@@ -51,4 +51,3 @@ def validate_template_config(config: dict) -> list[str]:
|
||||
if not output_name:
|
||||
errors.append(f"模板 {code} 缺少 output_name。")
|
||||
return errors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user