Skip to content

Add compat dependency#1324

Merged
sarangan12 merged 2 commits intoAzure:mainfrom
sarangan12:AddCompatDependency
Mar 1, 2022
Merged

Add compat dependency#1324
sarangan12 merged 2 commits intoAzure:mainfrom
sarangan12:AddCompatDependency

Conversation

@sarangan12
Copy link
Copy Markdown
Contributor

@sarangan12 sarangan12 commented Feb 22, 2022

This PR is to add the option flag core-compat-http-mode to support the SDK generation using the new @azure/core-compat-http package.

namespaceImport: "coreRestPipeline",
moduleSpecifier: "@azure/core-rest-pipeline"
});
modelsIndexFile.addImportDeclaration({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need to check for compatMode before importing this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Actually nope. All unused imports will be removed at the end by the prettier.

Comment thread test/utils/test-swagger-gen.ts
Copy link
Copy Markdown
Member

@joheredi joheredi left a comment

Choose a reason for hiding this comment

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

Looks good, I wonder if it would make more sense to have the test as a Smoke Test instead of an integration test because we are not adding any spec.ts files

@sarangan12 sarangan12 changed the title Add compat dependency (TEST PR) Add compat dependency Mar 1, 2022
@sarangan12 sarangan12 merged commit 89dfe44 into Azure:main Mar 1, 2022
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.

2 participants