Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Scalars lose their directives, including `@specifiedBy`

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

Maintainer thường phản hồi trong vòng 1 ngày

@oryan-block đang làm issue này rồi.

Từ ngày 20/10/2026.

  • #894 của @oryan-block — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
graphql, kotlin
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by reading how SchemaClassScanner builds scalars from values passed to .scalars(...), then compare that with how SchemaParser builds other types and applies directivesOf and SchemaDirectiveWiring. Check scalar definitions and extensions, including the provided scalar's specifiedByUrl and directives. Done means SDL and supplied-scalar directives and specifiedByUrl are preserved in the printed schema.

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

Mô tả

bug

Scalars are built in SchemaClassScanner from the GraphQLScalarType passed to .scalars(...), but only its name, description and coercing are copied. Directives from the SDL are never applied, on the scalar or on its extensions:

scalar Date @specifiedBy(url: "https://example.com/date")

prints as scalar Date. The provided scalar's own specifiedByUrl and directives aren't copied either.

Probably easiest to build scalars in SchemaParser like the other types, so they go through directivesOf and SchemaDirectiveWiring too.

Ngôn ngữ chính
Kotlin
Star
824
Fork
175
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
52

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

  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 graphql-java-kickstart/graphql-java-tools

Tất cả issue của graphql-java-kickstart/graphql-java-tools

Issue tương tự

Thêm issue về Kotlin

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.