fastapi-template/src/schemas.py
luxferre ea9803536a template for service rather than hub
Previous template structure had direct handling of auth. This structure is designed to get auth from the hub instead.
2026-06-05 16:39:14 +01:00

20 lines
340 B
Python

"""
Global Pydantic schemas
Exports:
- CustomBaseModel: Schema used for all other Pydantic models
- ResourceName
"""
from pydantic import BaseModel
from typing import Optional
class CustomBaseModel(BaseModel):
pass
class ResourceName(CustomBaseModel):
service: str
organisation: str
resource: str
instance: Optional[str] = None