Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public sealed partial class LabelDistributionStructureDimension
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<string> Choices { get; set; }

/// <summary>
/// Dimension primary key used by Dimension-backed Data Manager result filters.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("dimension_id")]
public int? DimensionId { get; set; }

/// <summary>
/// Original from_name from labeling config or observed annotation results.
/// </summary>
Expand Down Expand Up @@ -57,6 +63,9 @@ public sealed partial class LabelDistributionStructureDimension
/// <param name="name">
/// Original from_name from labeling config or observed annotation results.
/// </param>
/// <param name="dimensionId">
/// Dimension primary key used by Dimension-backed Data Manager result filters.
/// </param>
/// <param name="type">
/// Result item type for this dimension when available.
/// </param>
Expand All @@ -73,12 +82,14 @@ public sealed partial class LabelDistributionStructureDimension
public LabelDistributionStructureDimension(
global::System.Collections.Generic.IList<string> choices,
string name,
int? dimensionId,
string? type,
string? unsupportedReason,
global::System.Collections.Generic.IList<string> choiceKeys = default!)
{
this.ChoiceKeys = choiceKeys;
this.Choices = choices ?? throw new global::System.ArgumentNullException(nameof(choices));
this.DimensionId = dimensionId;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Type = type;
this.UnsupportedReason = unsupportedReason;
Expand Down
3 changes: 3 additions & 0 deletions src/libs/LabelStudio/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31675,6 +31675,9 @@ components:
items:
type: string
type: array
dimension_id:
description: Dimension primary key used by Dimension-backed Data Manager result filters.
type: integer
name:
description: Original from_name from labeling config or observed annotation results.
type: string
Expand Down