name-resolution-exp serves an OpenAPI document with no info.x-translator block

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
1/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
fastapi, openapi, python
Lĩnh vực
api

Hướng nghiên cứu

Read #294, which identifies the cause and covers this same issue; this issue is explicitly left open only for a maintainer to close. No implementation work is needed here.

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

Mô tả

Duplicate of #294 — filed before I spotted it. #294 covers the same thing and has the cause: FastAPI 0.137.0 stopped honouring assignment to app.openapi_schema, so construct_open_api_schema()'s output is built but never served, and it accounts for the missing contact, termsOfService, tags and servers as well. Read #294 instead; this one is left open only for a maintainer to close.

https://name-resolution-exp.apps.renci.org/openapi.json serves what looks like FastAPI's default document rather than NameRes's own. Its info block has only:

{"title": "...", "description": "...", "version": "..."}

with no x-translator. Every Translator service needs that block to be registered in SmartAPI, and the other NameRes deployments have it:

Deployment info.x-translator.infores
https://name-lookup.transltr.io/openapi.json infores:sri-name-resolver
https://name-lookup.test.transltr.io/openapi.json infores:sri-name-resolver
https://name-lookup.ci.transltr.io/openapi.json infores:sri-name-resolver
https://name-resolution-sri.renci.org/openapi.json infores:sri-name-resolver
https://namelookup-es.ci.transltr.io/webapp/openapi.json infores:sri-name-resolver
https://name-resolution-exp.apps.renci.org/openapi.json absent

/status at that host reports nameres_version v1.7.0 and babel_version 2026jul22, so it is a real and current deployment, not something half-started (checked 2026-08-31).

Is this a deployment problem, or is exp expected not to carry x-translator? If exp is deliberately outside SmartAPI registration we can exclude it in our tests; if not, the openapi.yml it should be merging in isn't being picked up.

Found by test_openapi_json in TranslatorSRI/babel-validation, which checks every target for the block.

Ngôn ngữ chính
Python
Star
5
Fork
4
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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 NCATSTranslator/NameResolution

Tất cả issue của NCATSTranslator/NameResolution

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.