fakesome icon indicating copy to clipboard operation
fakesome copied to clipboard

Add option to instantiate a custom version of fakesome

Open adius opened this issue 9 years ago • 0 comments

{
    name: 'config',
    desc: 'Change settings.',
    args: [
        {
            desc: 'Contains values to configure fakesome.',
            name: 'configObject',
            properties: [
                {
                    name: 'outputFormat',
                    type: ['JSON', 'XML', 'YAML'],
                    desc: 'Set the format of data generation.',
                    default: 'JSON'
                },
                {
                    name: 'generator',
                    type: 'function',
                    desc: 'Change the random number generator. (Is is also used to generate most of the other values).',
                    default: 'Math.rand()'
                }
            ],
            required: true,
            type: 'Object'
        }
    ],
    examples: [
        {
            desc: 'true or false',
            visible: true,
            args: null
        }
    ]
}

adius avatar May 09 '15 15:05 adius