Skip to content

Commit

Permalink
correct required enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 26, 2023
1 parent c712c82 commit a7c4323
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion builder2ibek.support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/ibek/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]},
)


Expand Down
3 changes: 0 additions & 3 deletions tests/samples/schemas/ibek.support.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@
},
"values": {
"description": "provides a list of values to make this argument an Enum",
"required": [
"values"
],
"title": "Values",
"type": "object"
}
Expand Down

0 comments on commit a7c4323

Please sign in to comment.