mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-02 08:15:08 -05:00
fix(mm): make type and format required in openapi schema for model config
This commit is contained in:
@@ -164,7 +164,7 @@ class ModelConfigBase(BaseModel):
|
||||
|
||||
@staticmethod
|
||||
def json_schema_extra(schema: dict[str, Any], model_class: Type[BaseModel]) -> None:
|
||||
schema["required"].extend(["key"])
|
||||
schema["required"].extend(["key", "type", "format"])
|
||||
|
||||
model_config = ConfigDict(validate_assignment=True, json_schema_extra=json_schema_extra)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user