Skip to content

Throw Error if Configuration Passed Into Plugin is Invalid #68

@kyrivanderpoel

Description

@kyrivanderpoel

This should make sure that a key passed in throws an error if the plugin is not configured for it.
For instance

from oil.plugins import Plugin
class MyPlugin(Plugin):
    default_config = {
        'my_config_variable': {
            'name': 'My Config Variable',
            'description': 'A description',
            'value_description': '0 1 2',
            'default': 1,
        },
    }


config = {
    'this_is_not_valid': 'This getting passed in currently slips by'
}
plugin = Plugin(config)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions