mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(nodes): make ImageField properties required
This commit is contained in:
parent
d1058adb59
commit
5a9157e628
@ -20,7 +20,14 @@ class ImageField(BaseModel):
|
|||||||
)
|
)
|
||||||
image_name: Optional[str] = Field(default=None, description="The name of the image")
|
image_name: Optional[str] = Field(default=None, description="The name of the image")
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
schema_extra = {
|
||||||
|
'required': [
|
||||||
|
'image_type',
|
||||||
|
'image_name',
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
class ImageOutput(BaseInvocationOutput):
|
class ImageOutput(BaseInvocationOutput):
|
||||||
"""Base class for invocations that output an image"""
|
"""Base class for invocations that output an image"""
|
||||||
#fmt: off
|
#fmt: off
|
||||||
|
Loading…
x
Reference in New Issue
Block a user