Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten JSON in query results #214

Merged
merged 3 commits into from
Jun 20, 2019
Merged

Flatten JSON in query results #214

merged 3 commits into from
Jun 20, 2019

Conversation

c0c0n3
Copy link
Member

@c0c0n3 c0c0n3 commented Jun 18, 2019

This PR implements the flattening JSON query responses as outlined in #213 and additionally changes the array type of values returned by the queries from an array of numbers to an array of any type. The reason for the latter change is that attribute values may not only be numbers, but any of the valid types permitted by the NGSI spec.

Important: Backward compatibility

The implemented changes break API backward compatibility so it will have to be managed accordingly at API and release level---e.g. new API version, advertise change, etc.

@c0c0n3 c0c0n3 requested review from taliaga and chicco785 June 18, 2019 16:35
@c0c0n3 c0c0n3 mentioned this pull request Jun 18, 2019
@c0c0n3
Copy link
Member Author

c0c0n3 commented Jun 18, 2019

have also updated the spec in the sdk repo to reflect the change to the value array type, see:

orchestracities/sdk@49885db

Copy link
Contributor

@chicco785 chicco785 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@c0c0n3 c0c0n3 merged commit b234a90 into master Jun 20, 2019
@c0c0n3 c0c0n3 deleted the flatten_json_in_query_results branch June 20, 2019 13:17
This was referenced Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants