fix(core): `getConnectorDetailsPerEnv` returning different response than documented in `openapi.yaml`
- Vorherrschende Sprache
- Java
- Sterne
- 195
- Forks
- 77
- Ø Merge
- 8 T. 9 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
# What happened?
`getConnectorDetailsPerEnv` response seems to not conform to the `openapi` documentation.
A `GET` to `getConnectorDetailsPerEnv?connectorName=Aindriu45&envSelected=4`
Returns this response:
```json
{
"connectorExists": true,
"connectorId": 1005,
"connectorContents": {
"runningTasks": 0,
"failedTasks": 0,
"environmentId": "4",
"teamName": "Ospo",
"teamId": 0,
"showEditConnector": false,
"showDeleteConnector": false,
"connectorDeletable": false,
"connectorOwner": false,
"highestEnv": false,
"hasOpenRequest": false,
"connectorConfig": "{\n \"connector.class\" : \"io.confluent.connect.storage.tools.SchemaSourceConnector\",\n \"tasks.max\" : \"1\",\n \"name\" : \"Aindriu45\",\n \"topic\" : \"NewTopic\",\n \"topics.regex\" : \"*\"\n}",
"environmentName": "DEV",
"description": "Connector description"
}
}
```
However, the expected response for the `connectorContents` property as documented is `KafkaConnectorModelResponse`, (https://github.com/aiven/klaw/blob/main/openapi.yaml#L8034-L8049) which has many more properties, including some `required` which are not present in the `getConnectorDetailsPerEnv` response: https://github.com/aiven/klaw/blob/main/openapi.yaml#L7523
# What did you expect to happen?
I expected the `getConnectorDetailsPerEnv` to return the data as documented in `openapi.yaml`.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.