Skip to content

Implement dataResponse field in event descriptor #100

@VigneshVSV

Description

@VigneshVSV

The TD/TM supports a field called dataResponse for event affordance so that information on receival of an event can be sent out further (Atleast thats what I think it is, although they say that its meant for a webhook, which I am not very knowledgeable about).

  • Support this field in the __init__ of Event - accept pydantic or JSON schema
  • Using the DataSchema pydantic object, populate this value in the generated ThingModel (in hololinked.td namespace)
  • Research whether this field can be used for sending acknowledgements back to the same server that sent the event. If yes, implement the acknowledge method of EventDispatcher and accept this acknowledgement (hololinked/core/event.py). Validate the payload received using pydantic or JSON schema and return the value to the user (Add a flag which allows skipping the validation). If this value cannot be used in acknowledgements, there is no need to implement this point.
  • add tests and documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention/extra information is needed

    Projects

    Status

    Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions