MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / linksSchemaValidation

Function linksSchemaValidation

client/i18n/schema-validation.ts:182–188  ·  view source on GitHub ↗
(languages: string[])

Source from the content-addressed store, hash-verified

180 * @param {String[]} languages List of languages to test
181 */
182const linksSchemaValidation = (languages: string[]) => {
183 languages.forEach(language => {
184 void readJsonFile(language, 'links').then(fileJson => {
185 schemaValidation(language, 'links', fileJson, linksSchemaKeys);
186 });
187 });
188};
189
190/**
191 * Common Function that checks the json file

Callers 1

Calls 2

readJsonFileFunction · 0.85
schemaValidationFunction · 0.85

Tested by

no test coverage detected