OpenAPI Destination Schema Discrepancies
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
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go, json, openapi, yaml
- Lĩnh vực
- api, backend-api-design
Hướng nghiên cứu
Start by comparing docs/apis/openapi.yaml with the affected internal/destregistry/metadata/providers/*/metadata.json files, then read the destination implementation to establish which definitions are authoritative. Check how OpenAPI is generated and whether validation tests exist. Done means the reported discrepancies are resolved consistently with the implementation and covered by validation where appropriate.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
During validation of AWS S3 schemas, comprehensive discrepancies were found between OpenAPI specification (docs/apis/openapi.yaml) and metadata definitions (internal/destregistry/metadata/providers/*/metadata.json) across all destination types.
Priority: Medium
These discrepancies may affect API documentation accuracy and could lead to validation errors or confusion for API consumers.
Affected Destination Types
1. Webhook Destination
Issues Found:
- OpenAPI includes credential fields (
secret,previous_secret,previous_secret_invalid_at) not present in metadata.json - Different URL validation approaches (format vs regex pattern)
- metadata.json has no credential fields (
[]) while OpenAPI defines credential management
Impact: Medium - credential management may not be implemented as documented
2. AWS SQS Destination
Issues Found:
- Missing
endpointfield in metadata.json (present in OpenAPI) - Missing
sessionfield in metadata.json (present in OpenAPI) - Inconsistent field descriptions
Impact: Medium - optional fields may not be implemented
3. AWS Kinesis Destination
Issues Found:
- Different validation approaches (format vs pattern)
- Field descriptions differ slightly
- Missing pattern validation in OpenAPI for
stream_name
Impact: Low - mostly validation and documentation issues
4. RabbitMQ Destination
Issues Found:
exchangefield marked required in OpenAPI but optional in metadata.json- Different TLS field types: OpenAPI uses string enum
["true", "false"], metadata.json uses checkbox - Different TLS defaults: OpenAPI
"false", metadata.json"on" - Password sensitivity not marked in OpenAPI (security documentation issue)
Impact: Medium - requirement mismatch could break API validation
5. Hookdeck Destination
Issues Found:
- Token sensitivity not marked in OpenAPI
Impact: Low - security documentation issue
6. Azure Service Bus Destination
Issues Found:
- Missing pattern validation in OpenAPI (
^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$) - Connection string sensitivity not marked in OpenAPI
- Inconsistent inclusion in destination enums/discriminators
Impact: Medium - incomplete integration and validation
Detailed Field Comparisons
AWS SQS
| Field | OpenAPI | metadata.json | Issue |
|---|---|---|---|
| queue_url | required, format: url | required, pattern validation | Different validation methods |
| endpoint | optional, format: url | MISSING | Field not implemented? |
| session | optional (credentials) | MISSING | Temporary credentials not supported? |
RabbitMQ
| Field | OpenAPI | metadata.json | Issue |
|---|---|---|---|
| exchange | required | optional | Conflicting requirements |
| tls | enum: ["true","false"], default: "false" | checkbox, default: "on" | Different types and defaults |
Azure Service Bus
| Field | OpenAPI | metadata.json | Issue |
|---|---|---|---|
| name | no pattern validation | pattern: ^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$ |
Missing validation |
Root Cause Analysis
- Metadata as Source of Truth: metadata.json files appear to reflect actual implementation
- Manual OpenAPI Maintenance: OpenAPI schema seems manually maintained and outdated
- Missing Validation Transfer: Pattern validations from metadata not consistently transferred to OpenAPI
- Sensitivity Markers: OpenAPI doesn't mark credential fields as sensitive consistently
Recommended Actions
Immediate (High Priority)
- Investigate implementation to determine which schema is correct for each discrepancy
- Fix RabbitMQ exchange requirement - breaking change potential
- Add missing Azure Service Bus pattern validation
Medium Priority
- Align AWS SQS optional fields (endpoint, session)
- Standardize TLS field handling across RabbitMQ
- Add missing sensitivity markers for security documentation
Long Term
- Establish schema generation process from metadata.json to OpenAPI
- Create validation tests to prevent future drift
- Document authoritative schema source
Technical Details
Validation Pattern Examples
- AWS Region:
^[a-z]{2}-[a-z]+-[0-9]+$ - Azure Service Bus Name:
^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$ - RabbitMQ Server:
^(?:localhost|127\.0\.0\.1|\[::1\]|(?:[\w\-]+\.)+[a-z]{2,})(?::\d{1,5})?$
Security Considerations
All credential fields should be marked as sensitive:
- AWS:
key,secret,session - Azure:
connection_string - RabbitMQ:
password - Hookdeck:
token
Dependencies
- Access to destination implementation code
- Understanding of current OpenAPI generation process
- API validation testing capabilities
Created by: Automated analysis comparing OpenAPI schemas with metadata.json definitions
Date: 2025-09-02
- Ngôn ngữ chính
- Go
- Star
- 1.1k
- Fork
- 70
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 56
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 hookdeck/outpost
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/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 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
hookdeck/outpost#1117 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hookdeck/outpost
Issue tương tự
-
mutation: parseInt64 accepts integers that overflow int64 and wrap to a non-negative valueCó thể đã có người làm @ogulcanaydogan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
open-policy-agent/gatekeeper#4872 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/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 68/100
containers/kubernetes-mcp-server#1496 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug performance scalability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Davidjustice28/basildb#35 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rhysd/actionlint#761 ·