Skip to content

Commit

Permalink
add video to openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq committed Oct 30, 2024
1 parent 9569e2a commit ec35ff2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/source/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@
},
{
"$ref": "#/components/schemas/ImageFeature"
},
{
"$ref": "#/components/schemas/VideoFeature"
}
]
},
Expand Down Expand Up @@ -558,6 +561,19 @@
}
}
},
"VideoFeature": {
"type": "object",
"required": ["_type"],
"properties": {
"_type": {
"type": "string",
"enum": ["Video"]
},
"decode": {
"type": "boolean"
}
}
},
"RowItem": {
"type": "object",
"required": ["row_idx", "row", "truncated_cells"],
Expand Down Expand Up @@ -622,6 +638,9 @@
},
{
"$ref": "#/components/schemas/NullableImagesListCell"
},
{
"$ref": "#/components/schemas/VideoCell"
}
]
},
Expand Down Expand Up @@ -770,6 +789,22 @@
]
}
},
"VideoCell": {
"type": "object",
"properties": {
"src": {
"type": "string",
"format": "uri"
},
"height": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"required": ["src"]
},
"IsValidResponse": {
"type": "object",
"required": ["preview", "viewer", "search", "filter", "statistics"],
Expand Down

0 comments on commit ec35ff2

Please sign in to comment.