Commit 1b3df02f authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

fix: lint

...@@ -15,41 +15,55 @@ survey_schema = { ...@@ -15,41 +15,55 @@ survey_schema = {
"latitude_A": { "latitude_A": {
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": ("Latitude of point A(intersection of normal)" "description": (
+ "from waypoint A to survey line"), "Latitude of point A(intersection of normal)"
+ "from waypoint A to survey line"
),
"example": 178.2, "example": 178.2,
}, },
"longitude_A": { "longitude_A": {
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": ("Longitude of point A(intersection of normal)" "description": (
+ "from waypoint A to survey line"), "Longitude of point A(intersection of normal)"
+ "from waypoint A to survey line"
),
"example": -10.122, "example": -10.122,
}, },
"latitude_B": { "latitude_B": {
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": ("Latitude of point B(intersection of normal)" "description": (
+ "from waypoint B to survey line"), "Latitude of point B(intersection of normal)"
+ "from waypoint B to survey line"
),
"example": 178.2, "example": 178.2,
}, },
"longitude_B": { "longitude_B": {
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": ("Longitude of point B(intersection of normal)" "description": (
+ "from waypoint B to survey line"), "Longitude of point B(intersection of normal)"
+ "from waypoint B to survey line"
),
"example": -10.122, "example": -10.122,
}, },
"platform_ID": { "platform_ID": {
"type": "string", "type": "string",
"description": "Unique identifier for this platform", "description": "Unique identifier for this platform",
"example": "ecosub-2", "example": "ecosub-2",
}, },
"track_ID": { "track_ID": {
"type": "integer", "type": "integer",
"description": "Track number of action(s) currently executed by platform", "description": "Track number of action(s) currently executed by platform",
"example": 1, "example": 1,
}, },
}, },
"required": ["latitude_A", "longitude_A", "latitude_B", "longitude_B", "platform_ID"], "required": [
"latitude_A",
"longitude_A",
"latitude_B",
"longitude_B",
"platform_ID",
],
} }
...@@ -7,9 +7,5 @@ from copy import deepcopy ...@@ -7,9 +7,5 @@ from copy import deepcopy
survey_encoded_schema = deepcopy(encoded_schema) survey_encoded_schema = deepcopy(encoded_schema)
survey_encoded_schema["properties"]["message_type"]["enum"] = [ survey_encoded_schema["properties"]["message_type"]["enum"] = ["survey_encoded"]
"survey_encoded" survey_encoded_schema["properties"]["message_type"]["example"] = "survey_encoded"
]
survey_encoded_schema["properties"]["message_type"][
"example"
] = "survey_encoded"
...@@ -68,8 +68,7 @@ swagger_config = { ...@@ -68,8 +68,7 @@ swagger_config = {
+ "platform_status_encoded", + "platform_status_encoded",
"acknowledgement": "#/components/schemas/acknowledgement", "acknowledgement": "#/components/schemas/acknowledgement",
"survey": "#/components/schemas/survey", "survey": "#/components/schemas/survey",
"survey_encoded": "#/components/schemas/" "survey_encoded": "#/components/schemas/" + "survey_encoded",
+ "survey_encoded",
}, },
}, },
"oneOf": [ "oneOf": [
......
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