Я пытаюсь сгенерировать swagger-клиент из swagger JSON, но когда я запускаю swagger code gen, он выдает ошибку, как будто не может завершить операцию. Ниже приведено мое чванство JSON
"/api/{id}/MO/{MOid}/pop/api": {
"post": {
"tags": [
"cam"
],
"summary": "summay",
"operationId": "ApiCamByIdMOByMOIdPOPApiPost",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "cam id",
"required": true,
"type": "string"
},
{
"name": "moId",
"in": "path",
"description": "mo's id",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "apiItemIds",
"in": "body",
"description": "List of api items",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
],
"responses": {
"200": {
"description": "API pop report",
"schema": {
"$ref": "#/definitions/Operation"
}
},
"404": {
"description": "Cam, mo not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
Когда я пытаюсь преобразовать этот JSON в java клиент с использованием кода чванства Gen. Он завершается неудачно с
Could not process operation:
после удаления эта часть
{
"name": "apiItemIds",
"in": "body",
"description": "List of api items",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
Генерация кода работает нормально. Я не знаю, что не так с этой частью, все выглядит хорошо для меня. Я попробовал этот запрос в команде почтальона и curl, он работал нормально. Я перепробовал много вещей без преимущества. Помощь будет оценена.