-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
good first issueGood for newcomersGood for newcomersintermediateintermediate level good first issues, might be little harder to completeintermediate level good first issues, might be little harder to complete
Milestone
Description
If clients do not understand the content type that is specified as default for a given property, action or event, provide the response in the content type specified in Accept.
Rough steps:
- always check if the
Acceptheader does not match thecontentTypein the (Thing Description) form - if they dont match, add a field in the
thing_execution_contextof the ZMQ scheduling message which states the content type requested. Of course, said content type must be supported in theSerializerssingleton. Dont add the info otherwise, send a error response to client instead. - if the value is supported, in the
RPCServer.run_thing_instance(inhololinked.core.zmq.rpc_server.py), use that content type instead to serialize the payload (not the default content type). - on the handler side, as usual, pass the payload in the body
- update the ZMQ message JSON schema (found as a JSON file under
hololinked.core.zmq) - add tests and documentation
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersintermediateintermediate level good first issues, might be little harder to completeintermediate level good first issues, might be little harder to complete
Type
Projects
Status
No status