Skip to content

Commit 5f9f6f2

Browse files
authored
Merge pull request #3010 from Azure/autogenerate-batch
Update Generated Schemas
2 parents 7a3f941 + ccd8f49 commit 5f9f6f2

File tree

38 files changed

+69364
-2187
lines changed

38 files changed

+69364
-2187
lines changed

generator/autogenlist.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,12 @@ const autoGenList: AutoGenConfig[] = [
787787
namespace: 'Microsoft.ServiceFabric',
788788
postProcessor: serviceFabricPostProcessor,
789789
},
790+
{
791+
basePath: 'servicefabricmanagedclusters/resource-manager',
792+
namespace: 'Microsoft.ServiceFabric',
793+
postProcessor: serviceFabricPostProcessor,
794+
suffix: 'ManagedClusters'
795+
},
790796
{
791797
basePath: 'servicelinker/resource-manager',
792798
namespace: 'Microsoft.ServiceLinker',

generator/processors/Microsoft.ServiceFabric.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { SchemaPostProcessor } from '../models';
44

55
export const postProcessor: SchemaPostProcessor = async (namespace, apiVersion, schema) => {
66

7-
let IpTag = schema.definitions?.IpConfigurationPublicIPAddressConfiguration?.properties?.ipTags?.oneOf[0].items?.$ref;
8-
if (IpTag != null){
9-
IpTag = "#/definitions/IPTag";
7+
const IpTag = schema.definitions?.IpConfigurationPublicIPAddressConfiguration?.properties?.ipTags?.oneOf[0].items;
8+
if (IpTag && IpTag['$ref']) {
9+
IpTag['$ref'] = '#/definitions/IPTag';
1010
}
1111

1212
}

0 commit comments

Comments
 (0)