From a7c43239f767e9160d4b4d74b1f44d1da75aa97b Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Tue, 26 Sep 2023 22:05:36 +0100 Subject: [PATCH] correct required enum values --- builder2ibek.support.py | 2 +- src/ibek/support.py | 1 - tests/samples/schemas/ibek.support.schema.json | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/builder2ibek.support.py b/builder2ibek.support.py index 7b3d58ec8..33ab96a8e 100755 --- a/builder2ibek.support.py +++ b/builder2ibek.support.py @@ -428,7 +428,7 @@ def tidy_up(yaml): # add support yaml schema self.yaml_tree.yaml_add_eol_comment( "yaml-language-server: $schema=https://github.com/epics-" - "containers/ibek/releases/download/1.1.1/ibek.support.schema.json" + "containers/ibek/releases/download/1.2.0/ibek.support.schema.json" ) print("\nWriting YAML output to %s ..." % filename) diff --git a/src/ibek/support.py b/src/ibek/support.py index a4fdbac41..e41973837 100644 --- a/src/ibek/support.py +++ b/src/ibek/support.py @@ -91,7 +91,6 @@ class EnumArg(Arg): values: Dict[str, Any] = Field( description="provides a list of values to make this argument an Enum", - json_schema_extra={"required": ["values"]}, ) diff --git a/tests/samples/schemas/ibek.support.schema.json b/tests/samples/schemas/ibek.support.schema.json index d14f319db..3bde4fe5b 100644 --- a/tests/samples/schemas/ibek.support.schema.json +++ b/tests/samples/schemas/ibek.support.schema.json @@ -242,9 +242,6 @@ }, "values": { "description": "provides a list of values to make this argument an Enum", - "required": [ - "values" - ], "title": "Values", "type": "object" }