Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate from openapi specs #1735

Merged
merged 1 commit into from
Nov 15, 2024
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 @@ -19,7 +19,7 @@
import json


from typing import List, Optional, Union
from typing import List, Union
try:
# Pydantic >=v1.10.17
from pydantic.v1 import BaseModel, Field, confloat, conint, conlist
Expand All @@ -32,7 +32,7 @@ class AutoTaskCrop(AutoTaskBase):
"""
Create a prediction which crops and focuses on a specific part of the image
"""
bboxs: Optional[conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1)] = Field(None, description="The bounding boxes to focus on.")
bboxs: conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1) = Field(..., description="The bounding boxes to focus on.")
__properties = ["type", "name", "bboxs"]

class Config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import json


from typing import List, Optional, Union
from typing import List, Union
try:
# Pydantic >=v1.10.17
from pydantic.v1 import BaseModel, Field, confloat, conint, conlist
Expand All @@ -31,7 +31,7 @@ class AutoTaskCropAllOf(BaseModel):
"""
AutoTaskCropAllOf
"""
bboxs: Optional[conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1)] = Field(None, description="The bounding boxes to focus on.")
bboxs: conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1) = Field(..., description="The bounding boxes to focus on.")
__properties = ["bboxs"]

class Config:
Expand Down