telefonicaid / telefonicaid/iotagent-node-lib

Modify the callback signature to allow unstructured format

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
62
Forks
90
Avg merge
2h 35m
Merged PRs (30d)
1

Description

There is currently a slight difference in the NGSI Handlers between the way the information is received (split in different parameters) and the way it should be returned (grouped in an object). Callbacks should offer the option of returning the split information instead of the object. This shouldn't change the signature, as two of the attributes (id and type) are required, so the different uses can be easily distinguished (by number of parameters or type).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the NGSI Handlers and their callback consumers, then compare how information is received in separate parameters with how it is returned in an object. Clarify the supported split-parameter form and add coverage showing both callback forms can be distinguished without breaking existing usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.