amoghrajesh commented on PR #67292: URL: https://github.com/apache/airflow/pull/67292#issuecomment-4516717972
One other thing I noticed about adding a task / asset state is, UI allows adding things like incomplete jsons, something like: ```bash curl --location --request PUT 'http://localhost:28080/api/v2/dags/my_dag/dagRuns/manual__2026-05-22T07:59:31.188183+00:00/taskInstances/t1/states/job_id' \ --header 'Content-Type: application/json' \ --header 'Authorization: ••••••' \ --data '{ "value": "incomplete }' ``` The API responds with 422 error but UI is sending it as: ```bash curl 'http://localhost:28080/api/v2/dags/my_dag/dagRuns/manual__2026-05-22T07:59:31.188183+00:00/taskInstances/t1/states/abcd?map_index=-1' \ -X 'PUT' \ --data-raw '{"value":"{\"abcd\": \"a}"}' ``` I think that the UI should validate the form field before constructing the JSON body to send -- 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]
