Skip to content

Commit

Permalink
added format_reference.txt, edited edge_case_messages.txt, edge_case_…
Browse files Browse the repository at this point in the history
…catalog.json
  • Loading branch information
bazarnov authored and yurii-bidiuk committed Nov 16, 2021
1 parent 3a0eaaf commit 7c0393f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,21 @@
}
}
}
},
{
"name": "stream_with_dates",
"json_schema": {
"properties": {
"some_date": {
"type": "string",
"format": "date"
},
"some_datetime": {
"type": "string",
"format": "date-time"
}
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,18 @@
{"type": "RECORD", "record": {"stream": "stream_name_next", "emitted_at": 1602637589400, "data": { "some_id" : 201, "next_field_name" : "next_field_name_1" }}}
{"type": "RECORD", "record": {"stream": "stream_name_next", "emitted_at": 1602637589450, "data": { "some_id" : 202, "next_field_name" : "next_field_name_2" }}}
{"type": "RECORD", "record": {"stream": "stream_name_next", "emitted_at": 1602637589500, "data": { "some_id" : 203 }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-1-1", "some_datetime" : "2021-1-1 01:01:01" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-11", "some_datetime" : "2021-1-1 01:01:01 +1" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-15", "some_datetime" : "2021-1-1T01:01:01 +1:00" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-16", "some_datetime" : "2021-01-01 01:01:01" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-11-13", "some_datetime" : "2021-01-01 01:01:01 +0000" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-10-12", "some_datetime" : "2021-01-01T01:01:01Z" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-12-17", "some_datetime" : "2021-01-01T01:01:01-01:00" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-18", "some_datetime" : "2021-01-01T01:01:01 +1:00" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-19", "some_datetime" : "2021-01-01 01:01:01 UTC" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-20", "some_datetime" : "2021-01-01T01:01:01 UTC" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-21", "some_datetime" : "2021-01-01T01:01:01 +1" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-22", "some_datetime" : "2021-01-01T01:01:01 +0000" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-23", "some_datetime" : "2021-01-01T01:01:01+0000" }}}
{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-24", "some_datetime" : "2021-01-01T01:01:01+1" }}}
{"type": "STATE", "state": { "data": {"start_date": "2020-09-02"}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
VALID FORMATS:

"2021-1-1"
"2021-01-01"
"2021-1-1 01:01:01"
"2021-1-1 01:01:01 +1"
"2021-01-01T01:01:01-01:00"
"2021-1-1T01:01:01 +1:00"
"2021-01-01 01:01:01"
"2021-01-01 01:01:01 +0000"
"2021-01-01T01:01:01Z"
"2021-01-01T01:01:01-01:00"
"2021-01-01T01:01:01 +1:00"


INVALID FORMATS:

"2021-01-01 01:01:01 UTC"
"2021-01-01T01:01:01 UTC"
"2021-01-01T01:01:01 +1"
"2021-01-01T01:01:01 +0000"
"2021-01-01T01:01:01+0000"
"2021-01-01T01:01:01+1"

0 comments on commit 7c0393f

Please sign in to comment.