mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat: use ModelValidator
naming convention for pydantic type adapters
This is the naming convention in the docs and is also clear.
This commit is contained in:
@ -821,7 +821,7 @@ class WorkflowField(RootModel):
|
||||
root: dict[str, Any] = Field(description="The workflow")
|
||||
|
||||
|
||||
type_adapter_WorkflowField = TypeAdapter(WorkflowField)
|
||||
WorkflowFieldValidator = TypeAdapter(WorkflowField)
|
||||
|
||||
|
||||
class WithWorkflow(BaseModel):
|
||||
@ -837,7 +837,7 @@ class MetadataField(RootModel):
|
||||
root: dict[str, Any] = Field(description="The metadata")
|
||||
|
||||
|
||||
type_adapter_MetadataField = TypeAdapter(MetadataField)
|
||||
MetadataFieldValidator = TypeAdapter(MetadataField)
|
||||
|
||||
|
||||
class WithMetadata(BaseModel):
|
||||
|
Reference in New Issue
Block a user