How to use the simpl-schema.default.Integer function in simpl-schema

To help you get started, we’ve selected a few simpl-schema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github steedos / object-server / schemas / reports.js View on Github external
blackbox: true
    },
    'filters.$.field': {
        type: String,
        label: '字段名',
        optional: true
    },
    'filters.$.operation': {
        type: String,
        label: '操作符',
        optional: true,
        defaultValue: "=",
        allowedValues: ['=', '<>', '<', '>', '<=', '>=', 'contains', 'notcontains', 'startswith', 'between']
    },
    'filters.$.value': {
        type: SimpleSchema.oneOf(String, Number, SimpleSchema.Integer, Boolean, {
            type: Object,
            blackbox: true
        }, Date),
        label: '字段值',
        optional: true,
        blackbox: true
    },
    filter_logic: {
        type: String,
        label: '过滤逻辑',
        optional: true
    },
    fields: {
        type: Array,
        label: '字段',
        optional: true