File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/superannotate_schemas/schemas Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ class BaseMetadata(BaseModel):
139139class BaseImageMetadata (BaseMetadata ):
140140 width : Optional [StrictInt ]
141141 height : Optional [StrictInt ]
142- pinned : Optional [bool ]
142+ pinned : Optional [StrictBool ]
143143
144144
145145class Correspondence (BaseModel ):
Original file line number Diff line number Diff line change @@ -2147,11 +2147,11 @@ def test_validate_vector_empty_annotation_bad_role(self):
21472147 },
21482148 "width":480,
21492149 "height":270,
2150+ "pinned": [ "fasdf" ],
21502151 "name":"1 copy_001.jpg",
21512152 "projectId":181302,
21522153 "isPredicted":false,
21532154 "status":"Completed",
2154- "pinned":false,
21552155 "annotatorEmail":null,
21562156 "qaEmail":null
21572157 },
@@ -2209,4 +2209,5 @@ def test_validate_vector_empty_annotation_bad_role(self):
22092209 data = json .loads (f .read ())
22102210 validator = AnnotationValidators .get_validator ("vector" )(data )
22112211 self .assertFalse (validator .is_valid ())
2212- self .assertEqual (len (validator .generate_report ()), 113 )
2212+ print (validator .generate_report ())
2213+ self .assertEqual (len (validator .generate_report ()), 191 )
You can’t perform that action at this time.
0 commit comments