diff --git a/compendium_v2/routes/schemas.py b/compendium_v2/routes/schemas.py index 63df6f3d08f9472dc2a92c2e8cff2c3ffa52c076..55d1cd0e7c3ecca37a0b8b8bf9a0250fd4ca1e46 100644 --- a/compendium_v2/routes/schemas.py +++ b/compendium_v2/routes/schemas.py @@ -392,7 +392,7 @@ EOSC_LISTINGS_RESPONSE_SCHEMA = { EXTERNAL_CONNECTIONS_RESPONSE_SCHEMA = { '$schema': 'http://json-schema.org/draft-07/schema#', 'definitions': { - 'connection': { + 'external_connection': { 'type': 'object', 'properties': { **NREN_YEAR_DATAPOINT, @@ -402,14 +402,8 @@ EXTERNAL_CONNECTIONS_RESPONSE_SCHEMA = { 'to_organization': {'type': 'string'}, 'interconnection_method': {'type': ['string', 'null']} }, - }, - 'external_connection': { - 'type': 'object', - 'properties': { - **NREN_YEAR_DATAPOINT, - 'connections': {'type': 'array', 'items': {'$ref': '#/definitions/connection'}} - }, - 'required': [*NREN_YEAR_DATAPOINT_REQUIRED, 'connections'], + 'required': [*NREN_YEAR_DATAPOINT_REQUIRED, 'link_name', 'capacity', + 'from_organization', 'to_organization', 'interconnection_method'], 'additionalProperties': False } },