form-submit-required.json 513 B

12345678910111213141516
  1. {
  2. "name": "verify-form-submit-required",
  3. "nodes": [
  4. {"id": "n1", "name": "Form", "type": "form-trigger", "position": {"x": 0, "y": 0},
  5. "config": {"title": "Upload",
  6. "fields": [{"name": "image", "label": "Image", "type": "file", "required": true}]}}
  7. ],
  8. "connections": [],
  9. "http": {
  10. "method": "POST",
  11. "path": "/webhook/{workflowId}",
  12. "multipart": {"fields": {"_probe": "x"}, "files": {}},
  13. "expectStatus": 400,
  14. "expectBodyContains": ["Image", "required"]
  15. }
  16. }