invalid_date_formats.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [
  2. {
  3. "query": "timestamp:hello",
  4. "result": [
  5. {"type": "spaces", "value": ""},
  6. {
  7. "type": "filter",
  8. "filter": "text",
  9. "negated": false,
  10. "invalid": {
  11. "reason": "Invalid date format. Expected +/-duration (e.g. +1h) or ISO 8601-like (e.g. 2017-10-17 or 2017-10-17T02:41:00.000Z)",
  12. "expectedType": ["date", "specificDate", "relativeDate"]
  13. },
  14. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  15. "operator": "",
  16. "value": {"type": "valueText", "value": "hello", "quoted": false}
  17. },
  18. {"type": "spaces", "value": ""}
  19. ]
  20. },
  21. {
  22. "query": "timestamp:123",
  23. "result": [
  24. {"type": "spaces", "value": ""},
  25. {
  26. "type": "filter",
  27. "filter": "text",
  28. "negated": false,
  29. "invalid": {
  30. "reason": "Invalid date format. Expected +/-duration (e.g. +1h) or ISO 8601-like (e.g. 2017-10-17 or 2017-10-17T02:41:00.000Z)",
  31. "expectedType": ["date", "specificDate", "relativeDate"]
  32. },
  33. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  34. "operator": "",
  35. "value": {"type": "valueText", "value": "123", "quoted": false}
  36. },
  37. {"type": "spaces", "value": ""}
  38. ]
  39. },
  40. {
  41. "query": "timestamp:2018-01-01T00:01ZZ",
  42. "result": [
  43. {"type": "spaces", "value": ""},
  44. {
  45. "type": "filter",
  46. "filter": "text",
  47. "negated": false,
  48. "invalid": {
  49. "reason": "Invalid date format. Expected +/-duration (e.g. +1h) or ISO 8601-like (e.g. 2017-10-17 or 2017-10-17T02:41:00.000Z)",
  50. "expectedType": ["date", "specificDate", "relativeDate"]
  51. },
  52. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  53. "operator": "",
  54. "value": {"type": "valueText", "value": "2018-01-01T00:01ZZ", "quoted": false}
  55. },
  56. {"type": "spaces", "value": ""}
  57. ]
  58. }
  59. ]