From d9c864f44d36e62d73b4cc12e38432f59d165920 Mon Sep 17 00:00:00 2001 From: Trishna Saeharaseelan <trishna.saeharaseelan@noc.ac.uk> Date: Fri, 17 Mar 2023 16:43:20 +0000 Subject: [PATCH] fix: additional_data in schema named differently as additional_spec --- formats/planning_configuration.py | 2 +- project/soar/swagger.json | 2 +- tests/fixtures/schemas.py | 2 +- tests/fixtures/swagger.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/formats/planning_configuration.py b/formats/planning_configuration.py index 27a3154..b450077 100644 --- a/formats/planning_configuration.py +++ b/formats/planning_configuration.py @@ -76,7 +76,7 @@ platform_schema = { "description": "Maximum altitude set for squad.", "example": 0.9, }, - "additional_specs": { + "additional_data": { "description": "Any addition fields/data to be added here", "example": {"swath_width": 10.0, "scan_type": "DVL"}, "type": "object", diff --git a/project/soar/swagger.json b/project/soar/swagger.json index cbb07a5..7e0d681 100644 --- a/project/soar/swagger.json +++ b/project/soar/swagger.json @@ -432,7 +432,7 @@ "description":"Squad consists of these platforms", "items":{ "properties":{ - "additional_specs":{ + "additional_data":{ "description":"Any addition fields/data to be added here", "example":{ "scan_type":"DVL", diff --git a/tests/fixtures/schemas.py b/tests/fixtures/schemas.py index 7ddf3c1..dcc6ac3 100644 --- a/tests/fixtures/schemas.py +++ b/tests/fixtures/schemas.py @@ -311,7 +311,7 @@ platform_schema = { "description": "Maximum altitude set for squad.", "example": 0.9, }, - "additional_specs": { + "additional_data": { "description": "Any addition fields/data to be added here", "example": {"swath_width": 10.0, "scan_type": "DVL"}, }, diff --git a/tests/fixtures/swagger.json b/tests/fixtures/swagger.json index 6372a06..a1db4bf 100644 --- a/tests/fixtures/swagger.json +++ b/tests/fixtures/swagger.json @@ -322,7 +322,7 @@ "description": "Squad consists of these platforms", "items": { "properties": { - "additional_specs": { + "additional_data": { "description": "Any addition fields/data to be added here", "example": { "scan_type": "DVL", -- GitLab