duhow opened a new issue, #7363:
URL: https://github.com/apache/incubator-devlake/issues/7363

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   ```
   {"code":0,"success":false,"message":"input json error (400)
   Wraps: (2) Key: 'WebhookDeployTaskRequest.StartedDate' Error:Field 
validation for 'StartedDate' failed on the 'required' tag
   Error types: (1) *hintdetail.withDetail (2) 
validator.ValidationErrors","causes":null,"data":null}
   ```
   
   ### What do you expect to happen
   
   Update curl command in Webhook deployment example command, to state the 
field is **required**, not **optional**.
   
![image](https://github.com/apache/incubator-devlake/assets/1145001/caaf7e77-d0be-4e82-a10b-7e58451f1a8d)
   
   
   ### How to reproduce
   
   ```bash
   curl 
https://devlake.localhost.com/api/rest/plugins/webhook/connections/2/deployments
 -X 'POST' \
   -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
   -d '{ "deploymentCommits":[ { "commit_sha":"the sha of deployment commit1", 
"repo_url":"the repo URL of the deployment commit" } ] }'
   ```
   
   Note `start_time` is not indicated in JSON query.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   1.0.0-beta5
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to