microsoft / microsoft/OpenAPI.NET.OData

add support for emitting webhooks

Open
#508 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority:p2 type:enhancement
Dominant language
C#
Stars
240
Forks
70
Avg merge
7h 59m
Merged PRs (30d)
13

Description

Microsoft Graph has types that are only used when the service calls to the client's APIs: change notifications.
In the Microsoft Graph pipeline, those types are being trimmed by kiota because they are not used anywhere (any inbound endpoint).
We should:

  1. come up with an annotation that means "used for a webhook"
  2. add this annotation to the metadata via XOD
  3. leverage that annotation here so a webhook definition can be added to the description
  4. have kiota project the types from webhooks components, and not trim them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Microsoft Graph pipeline, XOD metadata flow, and Kiota's trimming of types that are not used by inbound endpoints. Define how webhook annotations should be represented and consumed in the generated description. Done means webhook definitions preserve the required types and Kiota projects them instead of trimming them.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, openapi
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.