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

Aperta
#295 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
1/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
fastapi, openapi, python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
5
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NCATSTranslator/NameResolution

Tutte le issue di NCATSTranslator/NameResolution

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.