diff --git a/fuel_plugin_builder/CHANGELOG.md b/fuel_plugin_builder/CHANGELOG.md index d4a9da4..75499a7 100644 --- a/fuel_plugin_builder/CHANGELOG.md +++ b/fuel_plugin_builder/CHANGELOG.md @@ -5,6 +5,8 @@ - Show instruction for CentOS if not all requirements are installed - Fixed bug, deploy.sh doesn't have execution permission https://bugs.launchpad.net/fuel/+bug/1392736 +- Fixed bug, don't fail validation if environment_config.yaml file has checkbox + https://bugs.launchpad.net/fuel/+bug/1392807 ## 1.0.0 (2014-11-13) diff --git a/fuel_plugin_builder/fuel_plugin_builder/validators/schemas/v1.py b/fuel_plugin_builder/fuel_plugin_builder/validators/schemas/v1.py index d3b2044..c1e9c00 100644 --- a/fuel_plugin_builder/fuel_plugin_builder/validators/schemas/v1.py +++ b/fuel_plugin_builder/fuel_plugin_builder/validators/schemas/v1.py @@ -104,5 +104,5 @@ ENV_CONFIG_SCHEMA = { 'properties': { 'type': {'type': 'string'}, 'weight': {'type': 'integer'}, - 'value': {'type': 'string'}, + 'value': {'type': ['string', 'boolean']}, 'label': {'type': 'string'}}}}}} diff --git a/fuel_plugin_example/environment_config.yaml b/fuel_plugin_example/environment_config.yaml index 311180f..4d5485c 100644 --- a/fuel_plugin_example/environment_config.yaml +++ b/fuel_plugin_example/environment_config.yaml @@ -1,7 +1,48 @@ attributes: + fuel_plugin_example_text: - value: 'Set default value' - label: 'Text field' - description: 'Description for text field' - weight: 25 type: "text" + weight: 10 + value: "Default text" + label: "Text field label" + description: "Field description" + regex: + source: '\S' + error: "Error field cannot be empty" + + fuel_plugin_example_dropdown: + type: "dropdown" + weight: 20 + value: "value2" + label: "Dropdown label" + description: "Dropdown description" + values: + - data: "value1" + label: "Value 1 label" + - data: "value2" + label: "Value 2 label" + - data: "value3" + label: "Value 3 label" + + fuel_plugin_example_checkbox: + type: "checkbox" + weight: 30 + value: false + label: "Checkbox label" + description: "Checkbox description" + + fuel_plugin_example_radio: + type: "radio" + weight: 40 + value: "disabled" + label: "Radio buttons label" + values: + - data: "data1" + label: "Label data1" + description: "Description data1" + - data: "data2" + label: "Label data2" + description: "Description data2" + - data: "data3" + label: "Label data3" + description: "Description data3"