invalid_date_formats.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. "type": "invalid-date-format",
  12. "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)",
  13. "expectedType": ["date", "specificDate", "relativeDate"]
  14. },
  15. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  16. "operator": "",
  17. "value": {"type": "valueText", "value": "hello", "quoted": false}
  18. },
  19. {"type": "spaces", "value": ""}
  20. ]
  21. },
  22. {
  23. "query": "timestamp:123",
  24. "result": [
  25. {"type": "spaces", "value": ""},
  26. {
  27. "type": "filter",
  28. "filter": "text",
  29. "negated": false,
  30. "invalid": {
  31. "type": "invalid-date-format",
  32. "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)",
  33. "expectedType": ["date", "specificDate", "relativeDate"]
  34. },
  35. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  36. "operator": "",
  37. "value": {"type": "valueText", "value": "123", "quoted": false}
  38. },
  39. {"type": "spaces", "value": ""}
  40. ]
  41. },
  42. {
  43. "query": "timestamp:2018-01-01T00:01ZZ",
  44. "result": [
  45. {"type": "spaces", "value": ""},
  46. {
  47. "type": "filter",
  48. "filter": "text",
  49. "negated": false,
  50. "invalid": {
  51. "type": "invalid-date-format",
  52. "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)",
  53. "expectedType": ["date", "specificDate", "relativeDate"]
  54. },
  55. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  56. "operator": "",
  57. "value": {"type": "valueText", "value": "2018-01-01T00:01ZZ", "quoted": false}
  58. },
  59. {"type": "spaces", "value": ""}
  60. ]
  61. }
  62. ]