Skip to content

Commit

Permalink
Use property name list instead of values in some models for Python (
Browse files Browse the repository at this point in the history
  • Loading branch information
dargilco authored and arifibrahim4 committed Feb 26, 2024
1 parent b328ed0 commit 4fd26eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions specification/ai/ImageAnalysis/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ The first caption always applies to the whole image.
model DenseCaptionsResult {
@doc("The list of image captions.")
@minItems(1)
@projectedName("python", "list")
values: Array<DenseCaption>;
}

Expand Down Expand Up @@ -220,13 +221,15 @@ model ImageMetadata {
model ObjectsResult {
@doc("A list of physical object detected in an image and their location.")
@minItems(0)
@projectedName("python", "list")
values: Array<DetectedObject>;
}

@doc("Represents a list of people detected in an image and their location.")
model PeopleResult {
@doc("A list of people detected in an image and their location.")
@minItems(0)
@projectedName("python", "list")
values: Array<DetectedPerson>;
}

Expand All @@ -245,6 +248,7 @@ These regions preserve as much content as possible from the analyzed image, with
model SmartCropsResult {
@doc("A list of crop regions.")
@minItems(1)
@projectedName("python", "list")
values: Array<CropRegion>;
}

Expand Down Expand Up @@ -273,6 +277,7 @@ that appear in the image.
model TagsResult {
@doc("A list of tags.")
@minItems(0)
@projectedName("python", "list")
values: Array<DetectedTag>;
}

Expand Down

0 comments on commit 4fd26eb

Please sign in to comment.