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,6 +20,13 @@ class ImageField(BaseModel):
|
||||
)
|
||||
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):
|
||||
"""Base class for invocations that output an image"""
|
||||
|
Loading…
Reference in New Issue
Block a user