Skip to content

Commit

Permalink
Merge pull request #3010 from Azure/autogenerate-batch
Browse files Browse the repository at this point in the history
Update Generated Schemas
  • Loading branch information
jorgecotillo authored Dec 21, 2023
2 parents 7a3f941 + ccd8f49 commit 5f9f6f2
Show file tree
Hide file tree
Showing 38 changed files with 69,364 additions and 2,187 deletions.
6 changes: 6 additions & 0 deletions generator/autogenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,12 @@ const autoGenList: AutoGenConfig[] = [
namespace: 'Microsoft.ServiceFabric',
postProcessor: serviceFabricPostProcessor,
},
{
basePath: 'servicefabricmanagedclusters/resource-manager',
namespace: 'Microsoft.ServiceFabric',
postProcessor: serviceFabricPostProcessor,
suffix: 'ManagedClusters'
},
{
basePath: 'servicelinker/resource-manager',
namespace: 'Microsoft.ServiceLinker',
Expand Down
6 changes: 3 additions & 3 deletions generator/processors/Microsoft.ServiceFabric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { SchemaPostProcessor } from '../models';

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

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

}
Loading

0 comments on commit 5f9f6f2

Please sign in to comment.