MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / get_schema_for_path

Function get_schema_for_path

scripts/validate_schema.py:68–74  ·  view source on GitHub ↗

Determine which schema to use based on file path.

(path: Path)

Source from the content-addressed store, hash-verified

66
67
68def get_schema_for_path(path: Path) -> str | None:
69 """Determine which schema to use based on file path."""
70 parts = path.parts
71 for part in parts:
72 if part in SCHEMA_MAP:
73 return SCHEMA_MAP[part]
74 return None
75
76
77def validate_md_file(md_file: Path, errors: list, warnings: list) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected