Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
1b3df02f
Commit
1b3df02f
authored
1 year ago
by
Trishna Saeharaseelan
Browse files
Options
Download
Email Patches
Plain Diff
fix: lint
parent
2bf29c21
dev
41-add-optional-operating_area-as-a-wider-zone-outside-region_of_interest
42-add-event-details-and-status-to-acknowledgement-schema
66-tag-current-dev-as-version-1
76-should-depth-and-altitude-be-coordinates
80-add-informational-type-primitive
87-remove-comment-for-platform-status-state
87-remove-todo-comment-from-platform-state
action-refactor-test
ci-js-test
master
missionmonitor
v2.0.0
v2.0.0-beta.11
v2.0.0-beta.10
v2.0.0-beta.9
v2.0.0-beta.8
v2.0.0-beta.7
v2.0.0-beta.6
v2.0.0-beta.5
v2.0.0-beta.4
v2.0.0-beta.3
v2.0.0-beta.2
v2.0.0-beta.1
v1.0.0
v0.2.0
2 merge requests
!30
Resolve "Release v0.2"
,
!23
Add survey message type
Pipeline
#129187
passed with stages
in 1 minute and 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
+27
-18
formats/survey.py
formats/survey.py
+24
-10
formats/survey_encoded.py
formats/survey_encoded.py
+2
-6
generate_schema_config.py
generate_schema_config.py
+1
-2
No files found.
formats/survey.py
View file @
1b3df02f
...
...
@@ -15,41 +15,55 @@ 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"
:
{
"type"
:
"string"
,
"description"
:
"Unique identifier for this platform"
,
"example"
:
"ecosub-2"
,
},
},
"track_ID"
:
{
"type"
:
"integer"
,
"description"
:
"Track number of action(s) currently executed by platform"
,
"example"
:
1
,
},
},
"required"
:
[
"latitude_A"
,
"longitude_A"
,
"latitude_B"
,
"longitude_B"
,
"platform_ID"
],
"required"
:
[
"latitude_A"
,
"longitude_A"
,
"latitude_B"
,
"longitude_B"
,
"platform_ID"
,
],
}
This diff is collapsed.
Click to expand it.
formats/survey_encoded.py
View file @
1b3df02f
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
generate_schema_config.py
View file @
1b3df02f
...
...
@@ -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"
:
[
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment