{"size": 597, "ext": "js", "max_stars_repo_path": "aura-modules/src/test/modules/schemas/importSchemaService/importSchemaService.js", "max_stars_repo_name": "kiranmai-sfdev/aura", "max_stars_repo_stars_event_min_datetime": "2015-01-01T00:42:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T00:14:13.000Z", "max_issues_repo_path": "aura-modules/src/test/modules/schemas/importSchemaService/importSchemaService.js", "max_issues_repo_name": "kiranmai-sfdev/aura", "max_issues_repo_issues_event_min_datetime": "2015-02-06T17:56:21.000Z", "max_issues_repo_issues_event_max_datetime": "2019-02-27T05:19:11.000Z", "max_forks_repo_path": "aura-modules/src/test/modules/schemas/importSchemaService/importSchemaService.js", "max_forks_repo_name": "kiranmai-sfdev/aura", "max_forks_repo_forks_event_min_datetime": "2015-01-13T14:13:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T04:05:29.000Z"}
{"max_stars_count": 587, "max_issues_count": 156, "max_forks_count": 340, "avg_line_length": 39.8, "max_line_length": 95, "alphanum_fraction": 0.7118927973}
/**
 * This is an example in how to register a custom schema using a service
 * Alternatively, the API $A.clientService.addScopedModuleResolver can be used
 * @param {Object} service - An object with registerScopedModuleResolver function
 * @returns {Object} A test schema
 */
export default function SchemaResolverTest({ registerScopedModuleResolver }) {
    // Trivial example to resolve this custom test:// schema
    registerScopedModuleResolver('test', fullImport => `${fullImport.split('/')[1]}#resolved`);

    return {
        name: 'SchemaResolverTest!!!',
        schema: "test"
    };
}