diff --git a/bundler.py b/bundler.py index 94f964b7..4a476973 100644 --- a/bundler.py +++ b/bundler.py @@ -190,6 +190,7 @@ def _get_schema_object_from_file(self, base_dir, schema_path): return schema_object def _get_inline_ref(self, base_dir, filename, inline_key): + import jsonpath_ng filename = os.path.join(base_dir, filename) filename = os.path.abspath(os.path.normpath(filename)) base_dir = os.path.dirname(filename) diff --git a/device/patterns.yaml b/device/patterns.yaml index 5e469b98..1e279a18 100644 --- a/device/patterns.yaml +++ b/device/patterns.yaml @@ -14,10 +14,10 @@ components: properties: choice: type: string - enum: [value, value_list, increment, decrement] + enum: [value, values, increment, decrement] value: type: string - value_list: + values: type: array items: type: string