Skip to content

Commit

Permalink
Merge pull request #3050 from Azure/ant/v2_enabl
Browse files Browse the repository at this point in the history
Re-enable disabled schema generation with v2 plugin
  • Loading branch information
anthony-c-martin authored Apr 17, 2024
2 parents ae415a1 + a4b7e96 commit cab2542
Show file tree
Hide file tree
Showing 32 changed files with 10,337 additions and 5,387 deletions.
66 changes: 30 additions & 36 deletions generator/autogenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ const disabledProviders: AutoGenConfig[] = [
namespace: 'Microsoft.Cdn',
useAutorestV2: true,
},
{
// Disabled until the enum mismatch in the swagger spec is fixed
basePath: 'developerhub/resource-manager',
namespace: 'Microsoft.DevHub',
disabledForAutogen: true,
},
{
// Disabled as the swagger spec contains a type ("DateTimeRfc1123") which autorest is unable to parse: https://github.com/Azure/autorest.azureresourceschema/issues/71
basePath: 'domainservices/resource-manager',
namespace: 'Microsoft.AAD',
disabledForAutogen: true,
},
{
basePath: 'dns/resource-manager',
namespace: 'Microsoft.Network',
Expand All @@ -60,12 +48,6 @@ const disabledProviders: AutoGenConfig[] = [
disabledForAutogen: true,
suffix: 'privateDns',
},
{
// Disabled as the swagger spec contains a bug (enum mismatch)
basePath: 'edgeorderpartner/resource-manager',
namespace: 'Microsoft.EdgeOrderPartner',
disabledForAutogen: true,
},
{
basePath: 'logic/resource-manager',
namespace: 'Microsoft.Logic',
Expand All @@ -91,24 +73,6 @@ const disabledProviders: AutoGenConfig[] = [
namespace: 'Microsoft.Media',
disabledForAutogen: true,
},
{
// Disabled as the swagger spec contains a bug (enum mismatch)
basePath: 'servicefabricmesh/resource-manager',
namespace: 'Microsoft.ServiceFabricMesh',
disabledForAutogen: true,
},
{
// Disabled as the swagger spec contains a bug (enum mismatch - missing: ProvisioningStateEnum)
basePath: 'operationalinsights/resource-manager',
namespace: 'Microsoft.OperationalInsights',
disabledForAutogen: true,
},
{
// Disabled temporally due to invalid tags failure
basePath: 'confidentialLedger/resource-manager',
namespace: 'Microsoft.ConfidentialLedger',
disabledForAutogen: true
},
];

// Run "npm run list-basepaths" to discover all the valid readme files to add to this list
Expand Down Expand Up @@ -1170,6 +1134,36 @@ const autoGenList: AutoGenConfig[] = [
useAutorestV2: true,
suffix: 'OnAks',
},
{
basePath: 'developerhub/resource-manager',
namespace: 'Microsoft.DevHub',
useAutorestV2: true,
},
{
basePath: 'domainservices/resource-manager',
namespace: 'Microsoft.AAD',
useAutorestV2: true,
},
{
basePath: 'edgeorderpartner/resource-manager',
namespace: 'Microsoft.EdgeOrderPartner',
useAutorestV2: true,
},
{
basePath: 'servicefabricmesh/resource-manager',
namespace: 'Microsoft.ServiceFabricMesh',
useAutorestV2: true,
},
{
basePath: 'operationalinsights/resource-manager',
namespace: 'Microsoft.OperationalInsights',
useAutorestV2: true,
},
{
basePath: 'confidentialLedger/resource-manager',
namespace: 'Microsoft.ConfidentialLedger',
useAutorestV2: true
},
];

export function findAutogenEntries(basePath: string): AutoGenConfig[] {
Expand Down
Loading

0 comments on commit cab2542

Please sign in to comment.