// Test inputs for integer data validation export const integerDataInputs = [ { name: 'integer-data-valid-basic', lexicons: [ { lexicon: 1, id: 'test.integer.data', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { count: { type: 'integer', minimum: 0, maximum: 100, }, }, }, }, }, }, ], collection: 'test.integer.data', record: { count: 42 }, }, { name: 'integer-data-invalid-below-minimum', lexicons: [ { lexicon: 1, id: 'test.integer.min', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { count: { type: 'integer', minimum: 10, }, }, }, }, }, }, ], collection: 'test.integer.min', record: { count: 5 }, }, { name: 'integer-data-invalid-above-maximum', lexicons: [ { lexicon: 1, id: 'test.integer.max', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { count: { type: 'integer', maximum: 10, }, }, }, }, }, }, ], collection: 'test.integer.max', record: { count: 15 }, }, { name: 'integer-data-valid-enum', lexicons: [ { lexicon: 1, id: 'test.integer.enumvalid', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { level: { type: 'integer', enum: [1, 2, 3], }, }, }, }, }, }, ], collection: 'test.integer.enumvalid', record: { level: 2 }, }, { name: 'integer-data-invalid-enum', lexicons: [ { lexicon: 1, id: 'test.integer.enuminvalid', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { level: { type: 'integer', enum: [1, 2, 3], }, }, }, }, }, }, ], collection: 'test.integer.enuminvalid', record: { level: 5 }, }, { name: 'integer-data-invalid-wrong-type', lexicons: [ { lexicon: 1, id: 'test.integer.wrongtype', defs: { main: { type: 'record', key: 'tid', record: { type: 'object', properties: { count: { type: 'integer', }, }, }, }, }, }, ], collection: 'test.integer.wrongtype', record: { count: '42' }, }, ];