UPDATE
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pydantic import RootModel
|
||||
from pydantic import Field
|
||||
|
||||
from .common import EmptyRequest, RouteContract, SchemaModel
|
||||
from .common import ApiEnvelope, EmptyRequest, RouteContract, SchemaModel
|
||||
|
||||
HTTP_METHOD = 'GET'
|
||||
ROUTE_PATH = '/api/irrigation/'
|
||||
@@ -27,7 +27,7 @@ class IrrigationMethodSchema(SchemaModel):
|
||||
updated_at: str | None = None
|
||||
|
||||
|
||||
class IrrigationListResponse(RootModel[list[IrrigationMethodSchema]]):
|
||||
class IrrigationListResponse(ApiEnvelope[list[IrrigationMethodSchema]]):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user