MCPcopy
hub / github.com/subquery/subql / extensionIsYamlOrJSON

Function extensionIsYamlOrJSON

packages/common/src/project/utils.ts:214–216  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

212}
213
214export function extensionIsYamlOrJSON(ext: string): boolean {
215 return ext === '.yaml' || ext === '.yml' || ext === '.json';
216}
217
218export function forbidNonWhitelisted(keys: any, validationOptions?: ValidationOptions) {
219 return function (object: object, propertyName: string): void {

Callers 5

loadFromJsonOrYamlFunction · 0.90
getProjectSchemaMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected