MCPcopy Create free account
hub / github.com/axe-api/axe-api / analyzeVersions

Method analyzeVersions

packages/axe-api/src/Server.ts:79–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 private async analyzeVersions() {
80 const api = APIService.getInstance();
81 await new VersionResolver().resolve();
82
83 for (const version of api.versions) {
84 await new VersionConfigResolver(version).resolve();
85 await new ModelResolver(version).resolve();
86 await new SchemaValidatorService(version).validate();
87 await new ModelTreeBuilder(version).build();
88 await new IndexBuilder(version).build();
89 await new RouterBuilder(version).build();
90 }
91
92 // We should initialize the validator with the language support
93 IoCService.fastSingleton("Validator", () => {
94 return ValidatorFactory.resolve(api.config);
95 });
96 }
97
98 private async loadGeneralConfiguration() {
99 const api = APIService.getInstance();

Callers 1

startMethod · 0.95

Calls 5

fastSingletonMethod · 0.80
getInstanceMethod · 0.45
resolveMethod · 0.45
validateMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected