mirror of
https://github.com/imartinez/privateGPT.git
synced 2026-07-17 01:48:03 +00:00
12 lines
314 B
Python
12 lines
314 B
Python
from typing import Any
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class OpenAPIValidationErrorResponse(BaseModel):
|
|
"""Standard 422 validation error response."""
|
|
|
|
detail: str | list[dict[str, Any]] = Field(
|
|
description="Error detail — a string message or a list of validation error objects.",
|
|
)
|