Skip to content

Commit 8d48fda

Browse files
committed
Added isRequired in the attribute groups
1 parent 96a5961 commit 8d48fda

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/superannotate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55

6-
__version__ = "4.4.17"
6+
__version__ = "4.4.18b1"
77

88
sys.path.append(os.path.split(os.path.realpath(__file__))[0])
99

src/superannotate/lib/core/entities/classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AttributeGroup(TimedBaseModel):
7373
group_type: Optional[GroupTypeEnum]
7474
class_id: Optional[StrictInt]
7575
name: Optional[StrictStr]
76-
required: bool = Field(default=False)
76+
isRequired: bool = Field(default=False)
7777
attributes: Optional[List[Attribute]]
7878
default_value: Any
7979

tests/integration/classes/test_create_annotation_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_create_annotation_class_with_attr_and_default_value(self):
4444
attribute_groups=[
4545
{
4646
"name": "test",
47-
"required": False,
47+
"isRequired:": False,
4848
"attributes": [{"name": "Car"}, {"name": "Track"}, {"name": "Bus"}],
4949
"default_value": "Bus",
5050
}

tests/integration/export/test_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ def test_upload_s3(self):
106106
Bucket=self.TEST_S3_BUCKET, Prefix=self.TMP_DIR
107107
).get("Contents", []):
108108
files.append(object_data["Key"])
109-
self.assertEqual(33, len(files))
109+
self.assertEqual(25, len(files))

0 commit comments

Comments
 (0)