Skip to content

Commit

Permalink
fix: set min_length for image attr in ExtraSourceImage
Browse files Browse the repository at this point in the history
This accurately reflects that it is a required field for creating a `ExtraSourceImage`
  • Loading branch information
tazlin committed Apr 19, 2024
1 parent f291061 commit 6a8608f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/apis/models/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ def __init__(self, api):
self.model_extra_source_images = api.model(
"ExtraSourceImage",
{
"image": fields.String(description="The Base64-encoded webp to use for further processing."),
"image": fields.String(description="The Base64-encoded webp to use for further processing.", min_length=1),
"strength": fields.Float(description="Optional field, determining the strength to use for the processing", default=1.0),
},
)

0 comments on commit 6a8608f

Please sign in to comment.