mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
operation_ids give us better function names when generating the typescript API from the openapi.json. BaseModel.Config.title does the same for type names. Response models (or 204 status codes) need to be explicit or the API will be declared as returning any.
14 lines
238 B
Python
14 lines
238 B
Python
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from game.server.leaflet import LeafletPoly
|
|
|
|
|
|
class NavMeshPolyJs(BaseModel):
|
|
poly: LeafletPoly
|
|
threatened: bool
|
|
|
|
class Config:
|
|
title = "NavMeshPoly"
|