Bug 58497 - /package/package_files/{hash}: request_args возвращается как int вместо object
Summary: /package/package_files/{hash}: request_args возвращается как int вместо object
Status: NEW
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: rdb.altlinux.org (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P5 normal
Assignee: Danil Shein
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-03 11:00 MSK by Кирилл Уницаев
Modified: 2026-04-03 17:45 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Кирилл Уницаев 2026-04-03 11:00:59 MSK
Эндпоинт: GET /package/package_files/{pkghash}

Ожидаемый ответ (как во всех остальных эндпоинтах):
  "request_args": {"pkghash": "3326383216433746261"}

Фактический ответ:
  "request_args": 3326383216433746261

Swagger-спецификация описывает request_args как object.

Пример запроса:
curl -s https://rdb.altlinux.org/api/package/package_files/3326383216433746261 | python3 -m json.tool | head -5

Результат:
  {
      "request_args": 3326383216433746261,
      ...
  }
Comment 1 Кирилл Уницаев 2026-04-03 17:45:30 MSK
Эндпоинт: GET /site/binary_package_scripts/{pkghash}

тоже самое.

curl -s https://rdb.altlinux.org/api/site/binary_package_scripts/3310967880196625285 | python3 -m json.tool | head -5

{
    "request_args": 3310967880196625285,
    ...
}