// Test inputs for datetime format validation export const datetimeFormatInputs = [ { name: 'datetime-valid-utc', lexicons: [ { lexicon: 1, id: 'test.format.datetime', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { createdAt: { type: 'string', format: 'datetime' }, }, }, }, }, }, ], collection: 'test.format.datetime', record: { createdAt: '2024-01-01T12:00:00Z' }, }, { name: 'datetime-valid-with-offset', lexicons: [ { lexicon: 1, id: 'test.format.datetime', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { createdAt: { type: 'string', format: 'datetime' }, }, }, }, }, }, ], collection: 'test.format.datetime', record: { createdAt: '2024-01-01T12:00:00+00:00' }, }, { name: 'datetime-valid-with-milliseconds', lexicons: [ { lexicon: 1, id: 'test.format.datetime', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { createdAt: { type: 'string', format: 'datetime' }, }, }, }, }, }, ], collection: 'test.format.datetime', record: { createdAt: '2024-01-01T12:00:00.123Z' }, }, { name: 'datetime-invalid-negative-zero-offset', lexicons: [ { lexicon: 1, id: 'test.format.datetime', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { createdAt: { type: 'string', format: 'datetime' }, }, }, }, }, }, ], collection: 'test.format.datetime', record: { createdAt: '2024-01-01T12:00:00-00:00' }, }, { name: 'datetime-invalid-feb-30', lexicons: [ { lexicon: 1, id: 'test.format.datetime', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { createdAt: { type: 'string', format: 'datetime' }, }, }, }, }, }, ], collection: 'test.format.datetime', record: { createdAt: '2024-02-30T12:00:00Z' }, }, { name: 'datetime-invalid-empty', lexicons: [ { lexicon: 1, id: 'test.format.datetime', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { createdAt: { type: 'string', format: 'datetime' }, }, }, }, }, }, ], collection: 'test.format.datetime', record: { createdAt: '' }, }, ];