HumanSignal / label-studio-sdk

Label Studio SDK
https://api.labelstud.io
77 stars 50 forks source link

fix: DIA-1123: Config with empty string value breaks parser #212

Closed hakan458 closed 1 month ago

hakan458 commented 1 month ago

When instantiating a LabelInterface object with a config that included a Label tag with empty string value, the parser would break E.g.

<View>
  <Text name="text" value="$text"/>
  <Labels name="type" toName="text">
    <Label value="" />
    <Label value="" />
  </Labels>
</View>

We allow empty string as a value in validation it seems, but parser didnt handle it