update django-ninja, including pydantic v2 and add provisional level api
This commit is contained in:
parent
f89d069ab1
commit
b2aa76ba2d
20 changed files with 510 additions and 61 deletions
6
src/c3nav/mapdata/schemas/responses.py
Normal file
6
src/c3nav/mapdata/schemas/responses.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from ninja import Schema
|
||||
from pydantic import Field as APIField
|
||||
|
||||
|
||||
class BoundsSchema(Schema):
|
||||
bounds: tuple[tuple[float, float], tuple[float, float]] = APIField(..., example=((-10, -20), (20, 30)))
|
Loading…
Add table
Add a link
Reference in a new issue