Commit 651454ce authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

refactor: add nested schema for standard vehicle data

parent 7b0f6f5e
"""
schema: vehicle-specific decoded status message (DRAFT)
"""
from . import message_header_schema, api
from . import message_header_schema, vehicle_schema, api
from flask_restx import fields
......@@ -13,11 +13,7 @@ vehicle_status_message_schema = api.model(
required=True,
description="Message header",
),
"serial_number": fields.String(
required=True,
description="vehicle serial number",
example="ah-1",
),
"platform": fields.Nested(vehicle_schema)
"time": fields.String(
required=True,
description="Timestamp of message",
......@@ -28,16 +24,6 @@ vehicle_status_message_schema = api.model(
description="", # we can track the version of the AE plan?
example="",
),
"platform_ID": fields.Integer(
required=True,
description="Platform ID",
example=2,
),
"platform_type": fields.String(
required=True,
description="The high level type of this vehicle",
example="alr",
),
"platform_state": fields.String(
required=True,
description="",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment