MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / loadContractDocument

Function loadContractDocument

ts/workflow-cli/cli/contract.ts:20–25  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

18 : path.resolve(here, "../../../contract");
19
20export function loadContractDocument(fileName: string): Record<string, unknown> {
21 return yaml.load(readFileSync(path.join(CONTRACT_DIR, fileName), "utf-8")) as Record<
22 string,
23 unknown
24 >;
25}
26
27// Normalises the two OpenAPI 3.0 constructs Ajv can't consume directly, everywhere
28// they occur in the tree. Schema-agnostic: it reshapes keywords, never named schemas.

Callers 2

compileWorkflowValidatorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected