feat(products): add operation_limits to product_info_limit response (v4) — 0.85.0#4
Open
ci-action wants to merge 1 commit into
Open
feat(products): add operation_limits to product_info_limit response (v4) — 0.85.0#4ci-action wants to merge 1 commit into
ci-action wants to merge 1 commit into
Conversation
…v4) — 0.85.0
Ozon added a new response object `operation_limits` to
POST /v4/product/info/limit (per-minute product-creation rate limit).
- New model ProductInfoLimitOperationLimits {limit: int, limit_type: str}
(limit_type open-set str: UNSPECIFIED | RATE_LIMIT_PER_MINUTE).
- Added optional `operation_limits` field to ProductInfoLimitResponse
(additive, non-breaking; None when absent).
- Re-exported the new model; extended the unit test.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что изменено
Ozon добавил в ответ
POST /v4/product/info/limitновый объектoperation_limits— поминутный лимит на создание товаров (сигнал из live-spec, brief 2026-06-10).ProductInfoLimitOperationLimits { limit: int, limit_type: str }.limit_typeтипизирован как открытое множествоstr(значенияUNSPECIFIED|RATE_LIMIT_PER_MINUTE) — нельзя live-верифицировать без ключей, защищаемся от появления новых значений.ProductInfoLimitResponseдобавлено опциональное полеoperation_limits(аддитивно, обратно совместимо;None, если отсутствует).schemas/products/__init__.py; расширен юнит-тест.Почему
Аддитивное непрерывающее изменение сигнатуры реализованного метода — приводим схему в соответствие с live OpenAPI.
Версия
0.84.1 → 0.85.0(minor, новое поле/модель) вpyproject.tomlиsrc/ozonapi/__init__.py.Проверки (локально)
pytest: 565 passedmypy --config-file .claude/linters/mypy.iniпо изменённому файлу: clean (0 net-new)mainзапускается на этом PR.🤖 Generated with Claude Code