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

[EventGrid] Move to Core V2 Generator #16047

Merged
merged 2 commits into from
Jun 28, 2021

Conversation

ellismg
Copy link
Member

@ellismg ellismg commented Jun 28, 2021

As part of the development of the new pipeline, event grid was hand
ported to use the new pipeline. Now that the code generator targets
the new pipeline, we can start using it to generate the code.

Since EventGrid includes the /api/events path segement in the
Endpoint, We need to do a small amount of post processing of the
generated code, to ensure /api/events is not appended to the
endpoint (we do this by setting an empty path in the operation spec,
which is as things were before moving over to the generator).

Fixes #15823

As part of the development of the new pipeline, event grid was hand
ported to use the new pipeline. Now that the code generator targets
the new pipeline, we can start using it to generate the code.

Since EventGrid includes the `/api/events` path segement in the
Endpoint, We need to do a small amount of post processing of the
generated code, to ensure `/api/events` is not appended to the
endpoint (we do this by setting an empty path in the operation spec,
which is as things were before moving over to the generator).

Fixes Azure#15823
@ellismg ellismg requested a review from sarangan12 June 28, 2021 19:05
@ellismg ellismg requested a review from xirzec as a code owner June 28, 2021 19:05
Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

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

While it's unfortunate you need to do the workaround for the path, I'm actually pretty happy with how you encapsulated it. I might use this pattern in other places where the codegen is bugged. 😉

@ellismg ellismg merged commit 5c5c2cf into Azure:main Jun 28, 2021
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.

[Event Grid]Move the Event Grid package to use core-rest-pipeline
3 participants