Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to specify options types to automatically assert them #31

Open
satazor opened this issue Dec 21, 2012 · 0 comments
Open

Add ability to specify options types to automatically assert them #31

satazor opened this issue Dec 21, 2012 · 0 comments

Comments

@satazor
Copy link
Member

satazor commented Dec 21, 2012

One possible solution:

options: {
    opt1: {
        description: 'Opt1 description',
        'default': 'foo',
        type: String
    },
    opt2: {
        description: 'Opt2 description',
        'default': false,
        type: Boolean
    },
    opt3: {
        description: 'Opt3 description',
        type: [Array, Object]
    }
}

Then automaton would assert any options automatically based on their types.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/98457-add-ability-to-specify-options-types-to-automatically-assert-them?utm_campaign=plugin&utm_content=tracker%2F39683&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F39683&utm_medium=issues&utm_source=github).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant