// Test inputs for object data validation export const objectDataInputs = [ { name: 'object-data-valid-basic', lexicons: [ { lexicon: 1, id: 'test.object.data', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { title: { type: 'string' }, count: { type: 'integer' }, }, required: ['title'], }, }, }, }, ], collection: 'test.object.data', record: { title: 'Hello', count: 42 }, }, { name: 'object-data-invalid-missing-required', lexicons: [ { lexicon: 1, id: 'test.object.required', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { title: { type: 'string' }, }, required: ['title'], }, }, }, }, ], collection: 'test.object.required', record: { other: 'value' }, }, { name: 'object-data-valid-nullable-null', lexicons: [ { lexicon: 1, id: 'test.object.nullable', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { name: { type: 'string' }, duration: { type: 'integer' }, }, nullable: ['duration'], }, }, }, }, ], collection: 'test.object.nullable', record: { name: 'test', duration: null }, }, { name: 'object-data-invalid-non-nullable-null', lexicons: [ { lexicon: 1, id: 'test.object.nonnullable', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { name: { type: 'string' }, count: { type: 'integer' }, }, }, }, }, }, ], collection: 'test.object.nonnullable', record: { name: 'test', count: null }, }, ];