Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt-in omit x-ms-external model generation #877

Closed
wants to merge 2 commits into from

Conversation

tadelesh
Copy link
Member

Resolve #876

@tadelesh tadelesh marked this pull request as ready for review September 14, 2022 03:34
@jhendrixMSFT
Copy link
Member

Can you please provide some examples of how this is breaking existing modules?

@tadelesh
Copy link
Member Author

Can you please provide some examples of how this is breaking existing modules?

@jhendrixMSFT Some recent releases of mgmt. modules got breaking changes by this:

kusto: Azure/azure-sdk-for-go#19124, swagger
netapp: Azure/azure-sdk-for-go#19132, swagger
containerservice: Azure/azure-sdk-for-go#19111, swagger

@tadelesh
Copy link
Member Author

@jhendrixMSFT Many releases are blocked by this. Could you help to review ASAP. Thanks.

@jhendrixMSFT
Copy link
Member

Can we not work around these by way of transformation? Or are there more than just three releases?

@@ -25,7 +25,8 @@ export async function generateModels(session: Session<CodeModel>): Promise<model
let modelText = await contentPreamble(session);

// we do model generation first as it can add imports to the imports list
const structs = generateStructs(modelImports, serdeImports, session.model.schemas.objects);
const omitXMsExternal = await session.getValue('omit-x-ms-external', true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer that the default is false, and that if azure-arm is true then we can default this to true.

@tadelesh
Copy link
Member Author

tadelesh commented Sep 20, 2022

@jhendrixMSFT I think this change could be closed as Jeff said the removal of unreferenced type could be treated as non-breaking change (link).

@tadelesh tadelesh closed this Sep 20, 2022
@tadelesh tadelesh deleted the opt-in-x-ms-external branch September 22, 2022 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opt-in x-ms-external behavior change
2 participants