generator/processors/Microsoft.ProviderHub.ts (5 lines of code) (raw):
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SchemaPostProcessor } from '../models';
import { replaceCyclicRefByName } from './helpers';
export const postProcessor: SchemaPostProcessor = async (namespace, apiVersion, schema) => {
replaceCyclicRefByName(schema, 'ExtendedErrorInfo', { type: 'object' });
}