Request: Public schema for Notify webhook payloads and Custom Webhook GraphQL
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- graphql, openapi
- Lĩnh vực
- api, documentation
Hướng nghiên cứu
Bắt đầu bằng cách xác định đặc tả OpenAPI hiện có của Notify API và xem xét cách các component của nó được tổ chức. Định nghĩa các component chính thức cho webhook envelope và event body của Address Activity và NFT Activity, sau đó cung cấp schema GraphQL của Custom Webhooks dưới dạng SDL, JSON introspection hoặc một public endpoint. Được xem là hoàn tất khi consumer có thể sinh type và xác thực payload cũng như query, đồng thời mối quan hệ giữa kết quả GraphQL và webhook event được tài liệu hóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Notify has an OpenAPI spec for managing webhooks, but there is no official, machine-readable schema for:
- The webhook payloads actually sent to our endpoints
- The GraphQL schema used by Custom Webhooks
Having these as official schemas would make it much easier to build and validate strongly typed integrations.
Request 1: Schemas for webhook payloads
Provide OpenAPI components for webhook event bodies, especially:
- Address Activity Webhook
- NFT Activity Webhook
Suggested scope:
- Top-level envelope
webhookId,id,createdAt,type,event, etc.
eventobjectnetworkas an enum (aligned with the existing Notify API OpenAPI)activity[]items with clear required/optional fields, types, and nullability
- Enum-like fields
- For example:
categoryvalues such asexternal,internal,erc20,erc721,erc1155,token, etc.
- For example:
These should be provided as OpenAPI components alongside the existing Notify API spec.
Request 2: Schema for Custom Webhooks GraphQL
Provide a way to consume the Custom Webhooks GraphQL schema, for example:
- SDL file (
schema.graphql), or - Introspection JSON, or
- A public endpoint with introspection enabled (even read-only / rate-limited)
This would allow:
- GraphQL code generation (TypeScript, Go, etc.)
- IDE autocomplete and static validation for Custom Webhook queries
- CI validation of GraphQL queries against the real schema
It would also help to document how the GraphQL result is embedded in the webhook payload (relationship between GraphQL data and the event object / top-level envelope).
Motivation
- We validate incoming webhook requests using JSON Schema / OpenAPI at the edge.
- We use schema/codegen to generate types for multiple services from a single source of truth.
- Without official schemas, we have to rely on prose docs and examples, which is fragile when payloads or fields evolve.
- Ngôn ngữ chính
- MDX
- Star
- 8
- Fork
- 18
- Merge trung bình
- 21 giờ 8 phút
- Pull request đã merge (30 ngày)
- 45
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của alchemyplatform/docs
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
alchemyplatform/docs#1168 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wiz-remediation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
alchemyplatform/docs#1209 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 52/100
alchemyplatform/docs#753 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
alchemyplatform/docs#749 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của alchemyplatform/docs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Eyevinn/open-videocore#1256 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug][API] Switching workflow versions leaves schedules onlineCó thể đã có người làm @zhuangchong đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/dolphinscheduler#18731 ·
Maintainer thường phản hồi trong vòng 1 ngày