Корявая документация
Запускаю генерацию php-клиента на основе этой схемы: https://docs.ozon.ru/api/seller/swagger.jsonПолучаю такие ошибки:
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 17, Warning count: 0
Errors:
-attribute components.schemas.v3FinanceCashFlowStatementListResponseResult.items is not of type `object`
-attribute components.schemas.ReportListRequestReportType.enum is not of type `array`
-attribute components.schemas.seller_serviceanalyticsDimension.enum is not of type `array`
-attribute components.schemas.FinanceCashFlowStatementListResponseDetails.items is not of type `object`
-attribute components.schemas.reportCreateCompanyProductsReportRequestVisibility.enum is not of type `array`
-attribute components.schemas.DetailsService.items is not of type `object`
-attribute components.schemas.DetailsOthers.items is not of type `object`
-attribute components.schemas.SortingOrder.enum is not of type `array`
-attribute components.schemas.reportLanguage.enum is not of type `array`
-attribute components.schemas.DetailsReturns.items is not of type `object`
-attribute paths.'/v2/product/import'(post).operationId is repeated
-attribute components.schemas.v5FbsPostingProductExemplarSetV5Request.required is not of type `array`
-attribute components.schemas.GetProductRatingBySkuResponseRatingGroup.foramt is unexpected
-attribute components.schemas.FilterOp.enum is not of type `array`
-attribute components.schemas.v2ServiceType.enum is not of type `array`
-attribute components.schemas.DetailsServices.items is not of type `object`
-attribute components.schemas.analyticsMetric.enum is not of type `array`
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:546)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:573)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:432)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Тут проблема в том, что в схеме куча ошибок. Но ладно, это я поправил руками

Далее, смотрим новость: https://dev.ozon.ru/news/270-Vazhnye-izmeneniia-v-Seller-API?userid=203996&utm_campaign=MPCOM-13692&utm_content=text&utm_mcp_block_id=cnrtbr1vcgxgx2mg70p0&utm_mcp_vid=cnrt941vcgxgx2mg708g&utm_medium=email&utm_mid=5449459713880260968&utm_source=mcp&utm_term=4501:020231207
Повысили версию метода /v2/product/import. В новой версии удалили поле category_id из запроса и добавили поле description_category_id (integer<int64>, обязательное)
В одном примере (пример запроса без загрузки видео) вы заменили поле category_id на description_category_id, а в самой схеме запроса - нет

Далее - https://docs.ozon.ru/api/seller/#operation/ChatAPI_ChatHistoryV2messageId - неправильный регистр. С API по факту приходит message_id

Сваггер по-преждему кривой. Присутствуют опечатки. Старые проблемы так и не были поправлены.
"foramt": "int64",
"enum": null,
"items": null,и т. д.
Причём это лишь маленький список.Посмотрел kiotaтут в разы больше
.kiota.log
111.9 kB
mike_k - Семь месяцев назад написал что он всё поправил!Можно свою документацию проверять хотя бы!
Допустим здесь https://editor.swagger.io/
Errors:
-attribute components.schemas.v3FinanceCashFlowStatementListResponseResult.items is not of type `object`
-attribute components.schemas.ReportListRequestReportType.enum is not of type `array`
-attribute components.schemas.seller_serviceanalyticsDimension.enum is not of type `array`
-attribute components.schemas.FinanceCashFlowStatementListResponseDetails.items is not of type `object`
-attribute components.schemas.reportCreateCompanyProductsReportRequestVisibility.enum is not of type `array`
-attribute components.schemas.DetailsService.items is not of type `object`
-attribute components.schemas.DetailsOthers.items is not of type `object`
-attribute components.schemas.SortingOrder.enum is not of type `array`
-attribute components.schemas.reportLanguage.enum is not of type `array`
-attribute components.schemas.DetailsReturns.items is not of type `object`
-attribute components.schemas.v5FbsPostingProductExemplarSetV5Request.required is not of type `array`
-attribute components.schemas.GetProductRatingBySkuResponseRatingGroup.foramt is unexpected
-attribute components.schemas.FilterOp.enum is not of type `array`
-attribute components.schemas.DetailsServices.items is not of type `object`
-attribute components.schemas.analyticsMetric.enum is not of type `array`
Добрый день! По методу /v2/product/import, на скриншоте у вас вторая версия, поэтому поле category_id есть. По остальным замечаниям поправим, спасибо!