Add some way of resolving out-of-schema references

Đang mở
#74 4 bình luận 2 reaction 0 người được giao Xem trên GitHub

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
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

The issue proposes a function that fetches external schemas, adds them to a definitions section, and rewrites $ref keys; it does not name files, tests, or entry points. Start by reading the from_schema() implementation and existing schema reference handling, then identify how definitions and external references are represented. Done means external schemas are resolved into in-schema definitions while from_schema() remains free of IO.

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

Mô tả

I really don't like references to other schemas, because they make the meaning temporally variable and unreliable - the referenced schema can change or become inaccessible. Dealing with them also adds IO, which makes everything harder.

Nonetheless, they are useful and in practice widely used, so we can't ignore them forever. I would therefore like to add a function which fetches external schemas, adds them to a definitions section, and rewrites the $ref keys to point to the new in-schema copies.

The actual from_schema() implementation can then continue to ignore IO, and any problems will at least be isolated in their own function!

Ngôn ngữ chính
Python
Star
281
Fork
35
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-jsonschema/hypothesis-jsonschema

Tất cả issue của python-jsonschema/hypothesis-jsonschema

Issue tương tự

Thêm issue về Python

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.