/capture-admin/agents/{agent_name}/capabilities.json: When only one capability, returns an object, otherwise an array #6988
-
|
Hi, we're still on Opencast 14. I noticed that if For instance one: {"properties-response":{"properties":{"item":{"key":"capture.device.names","value":"Auto A,Auto B"}}}}Multiple: {"properties-response":{"properties":{"item":[{"key":"capture.device.names","value":"Presentation Recorder: presentation/source"},{"key":"capture.device.Presentation Recorder: presentation/source.version","value":"8.1.4"},{"key":"capture.device.Presentation Recorder: presentation/source.mode","value":1}]}}}Is this still an issue in the current Opencast and if so, is this by intention? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Most probably yes and there are a ton of other endpoints that behave similar to this. This is more or less default Java / JAX-RS behavior and probably not an issue between Java codebases that use the same stack. But this is a pain in the neck to deal with for everything else... |
Beta Was this translation helpful? Give feedback.
Most probably yes and there are a ton of other endpoints that behave similar to this. This is more or less default Java / JAX-RS behavior and probably not an issue between Java codebases that use the same stack. But this is a pain in the neck to deal with for everything else...