AllWatcherNextResults API schema differs from response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Simon Richardson |
Bug Description
The AllWatcherNextR
The schema.json has:
```
"type": "object",
}
}
},
},
"Delta": {
"type": "object",
},
}
},
}
}
```
The actual response is a tuple in the format ["entity type string", "change type string", {delta object}] e.g.
```
{
"request-id": 1,
"response": {
"deltas": [
[
"model",
"change",
{
...
}
],
...
]
}
}
```
This is seen in 3.x but is also the same for 2.9.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju: | |
assignee: | nobody → Simon Richardson (simonrichardson) |
Unfortunately I think there is some special encoding going on for Delta, you can see it in MarshalJSON() in rpc/params/ multiwatcher. go