a2ui-project / a2ui-project/a2ui

Support validation of the `schema` in a CatalogItem

Đang mở Phù hợp với người mới
#1,832 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
component: genui P2
Ngôn ngữ chính
TypeScript
Star
16.4k
Fork
1.3k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
134

Mô tả

_↴ Ported from [flutter/genui#433](https://github.com/flutter/genui/issues/433) — originally opened by [polina-c](https://github.com/polina-c) on 2025-10-23._
_Original labels: P2, quality_

---

Can we have the method Catalog.validate() that:

1. Invokes the existing validateCatalogExamples
2. Invokes validation of schema, i.e.:
- there are properties 'properties' and 'description'
- property 'required' contains only existing properties
- 'properties' is a map

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Look for the Catalog class and its validate method or similar validation logic. The existing validateCatalogExamples function is a starting point. Examine the schema structure to check for 'properties' and 'description' keys, ensure 'required' contains only existing properties, and verify 'properties' is a map. Write tests to confirm the validation works as described.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
backend-api-design
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
65/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.