We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
${...}
Bug description
Error date has invalid format when create a custom notif with ngsi patch using a macro in a attribute with type "DateTime".
date has invalid format
How to reproduce it
curl --location 'http://orion_host:1026/v2/subscriptions' \ --header 'Fiware-Service: service' \ --header 'Fiware-ServicePath: /subservice' \ --header 'X-Auth-Token: g... \ --header 'Content-Type: application/json' \ --data '{ "description": "DateTime test", "status": "active", "subject": { "entities": [ { "idPattern": ".*", "type": "NoiseLevelObserved" } ], "condition": { "attrs": [ "TimeInstant" ], "notifyOnMetadataChange": true } }, "notification": { "attrs": [ "dateobservedto" ], "onlyChangedAttrs": false, "attrsFormat": "normalized", "httpCustom": { "url": "http://host-cygnus:port/notify", "ngsi": { "dateobservedto": { "type": "DateTime", "value": "${TimeInstant}" } } } } }'
400 Bad Request
{ "error": "BadRequest", "description": "date has invalid format" }
Expected behavior Accept the macro expression in the value when the attribute's type is DateTime.
DateTime
The text was updated successfully, but these errors were encountered:
Include in the fix other attribute types that may behave in the same way: type:"geo:json"
Sorry, something went wrong.
PR #4436
It works right. I close the issue
No branches or pull requests
Bug description
Error
date has invalid format
when create a custom notif with ngsi patch using a macro in a attribute with type "DateTime".How to reproduce it
400 Bad Request
Expected behavior
Accept the macro expression in the value when the attribute's type is
DateTime
.The text was updated successfully, but these errors were encountered: