v7labs / darwin-py

Library and commandline tool for managing datasets on darwin.v7labs.com
MIT License
115 stars 42 forks source link

[DAR-1562][External] Allow pulling of unpopulated required property annotations #825

Closed JBWilkie closed 4 months ago

JBWilkie commented 4 months ago

Problem

When pulling annotations with unpopulated required properties, the frame_index field will be set to null. This caused a Pydantic ValidationError because it needs to be type int

Solution

It's required that darwin-py can pull unpopulated required properties (but not import them), so allow the SelectedProperty frame_index attribute to be None

Changelog

Fixed bug preventing darwin-py from being able to pull annotations with unpopulated required properties

linear[bot] commented 4 months ago

DAR-1562 BUG: darwin-py cannot pull exports if any required property in the export is not populated