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

fix: lint

......@@ -15,29 +15,37 @@ survey_schema = {
"latitude_A": {
"type": "number",
"format": "float",
"description": ("Latitude of point A(intersection of normal)"
+ "from waypoint A to survey line"),
"description": (
"Latitude of point A(intersection of normal)"
+ "from waypoint A to survey line"
),
"example": 178.2,
},
"longitude_A": {
"type": "number",
"format": "float",
"description": ("Longitude of point A(intersection of normal)"
+ "from waypoint A to survey line"),
"description": (
"Longitude of point A(intersection of normal)"
+ "from waypoint A to survey line"
),
"example": -10.122,
},
"latitude_B": {
"type": "number",
"format": "float",
"description": ("Latitude of point B(intersection of normal)"
+ "from waypoint B to survey line"),
"description": (
"Latitude of point B(intersection of normal)"
+ "from waypoint B to survey line"
),
"example": 178.2,
},
"longitude_B": {
"type": "number",
"format": "float",
"description": ("Longitude of point B(intersection of normal)"
+ "from waypoint B to survey line"),
"description": (
"Longitude of point B(intersection of normal)"
+ "from waypoint B to survey line"
),
"example": -10.122,
},
"platform_ID": {
......@@ -51,5 +59,11 @@ survey_schema = {
"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
survey_encoded_schema = deepcopy(encoded_schema)
survey_encoded_schema["properties"]["message_type"]["enum"] = [
"survey_encoded"
]
survey_encoded_schema["properties"]["message_type"][
"example"
] = "survey_encoded"
survey_encoded_schema["properties"]["message_type"]["enum"] = ["survey_encoded"]
survey_encoded_schema["properties"]["message_type"]["example"] = "survey_encoded"
......@@ -68,8 +68,7 @@ swagger_config = {
+ "platform_status_encoded",
"acknowledgement": "#/components/schemas/acknowledgement",
"survey": "#/components/schemas/survey",
"survey_encoded": "#/components/schemas/"
+ "survey_encoded",
"survey_encoded": "#/components/schemas/" + "survey_encoded",
},
},
"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