Enable Schema Analyzer in MPAC (#805)
This commit is contained in:
parent
c2de2f2eec
commit
ac753b0780
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"JUNO_ENDPOINT": "https://tools-staging.cosmos.azure.com"
|
"JUNO_ENDPOINT": "https://tools-staging.cosmos.azure.com",
|
||||||
}
|
"enableSchemaAnalyzer": true
|
||||||
|
}
|
|
@ -27,6 +27,7 @@ export interface ConfigContext {
|
||||||
hostedExplorerURL: string;
|
hostedExplorerURL: string;
|
||||||
armAPIVersion?: string;
|
armAPIVersion?: string;
|
||||||
allowedJunoOrigins: string[];
|
allowedJunoOrigins: string[];
|
||||||
|
enableSchemaAnalyzer: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default configuration
|
// Default configuration
|
||||||
|
@ -61,6 +62,7 @@ let configContext: Readonly<ConfigContext> = {
|
||||||
"https://tools-staging.cosmos.azure.com",
|
"https://tools-staging.cosmos.azure.com",
|
||||||
"https://localhost",
|
"https://localhost",
|
||||||
],
|
],
|
||||||
|
enableSchemaAnalyzer: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
export function resetConfigContext(): void {
|
export function resetConfigContext(): void {
|
||||||
|
|
|
@ -542,6 +542,10 @@ export default class Explorer {
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (configContext.enableSchemaAnalyzer) {
|
||||||
|
userContext.features.enableSchemaAnalyzer = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onGitHubClientError = (error: any): void => {
|
private onGitHubClientError = (error: any): void => {
|
||||||
|
|
Loading…
Reference in New Issue