start adding new ninja-based OpenAPI-compatible API v2, starting with mesh
This commit is contained in:
parent
0b6362c8ab
commit
f5c33724dc
9 changed files with 101 additions and 4 deletions
|
@ -2,6 +2,7 @@ import re
|
|||
from dataclasses import dataclass, field
|
||||
from enum import IntEnum, unique
|
||||
|
||||
from c3nav.api.utils import EnumSchemaByNameMixin
|
||||
from c3nav.mesh.baseformats import (BoolFormat, EnumFormat, FixedHexFormat, FixedStrFormat, SimpleFormat, StructType,
|
||||
VarArrayFormat)
|
||||
|
||||
|
@ -76,7 +77,7 @@ class UWBConfig(StructType):
|
|||
|
||||
|
||||
@unique
|
||||
class BoardType(IntEnum):
|
||||
class BoardType(EnumSchemaByNameMixin, IntEnum):
|
||||
CUSTOM = 0x00
|
||||
|
||||
# devboards
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue