-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hey,
Context
Im investigating an issue related to missing parameter. Im using the version on the development branch (up to commit 8a6d611):
curl 127.0.0.1:8099/agency/vehicles/8869471e-0ce8-42b1-9cd6-de043260f19a/event -H "Content-Type: application/json" -H 'Authorization: Bearer eyJhbxxxxxxxxxxxxcXXxxxxxJqI' -XPOST -d '{"event_type":"trip_start","timestamp":1626795564136,"telemetry":{"device_id":"8869471e-0ce8-42b1-9cd6-de043260f19a","timestamp":1626795564136,"gps":{"lat":41.143001014744,"lng":-8.61387095508788},"charge":0.94},"trip_id":"887ee4ed-17ca-44a3-9047-7cd4ba5083f2"}'
{"error":"missing_param","error_description":"missing enum field \"event_type\""}
As you can see, im sending the event_type in the body, but mds-agency complains about it.
After pulling to the latest commit (8e1dd6c), i get a different error:
{"error":"missing_param","error_description":"A required parameter is missing.","error_details":["event_types"]}
( the request is the same, im just posting the reply to save space in the post)
Note that, according to the message, the request is now missing event_types (plural).
At first i thought this was a typo, but looking at the code, that doesnt seem to be the case. My feeling is that its now using a new mds spec.
Looking at the latest(?) specification, there's no such attribute.
Questions
Let me first acknowledge that using a dev branch is risky and prone to hit in these kind of situations.
But, is there a roadmap of features do be developed i could see?
Can i see which mds spec version does a mds-core version/branch complies with?
I see that there's a branch release/0.1.1(although the latest release states version "0.1.0") is this the latest 'stable' version?
Thank you