Skip to content
Snippets Groups Projects
Commit bc4f8547 authored by Erik Reid's avatar Erik Reid
Browse files

fixed errors in coriant-info schema

parent 5161d315
No related branches found
No related tags found
No related merge requests found
...@@ -655,7 +655,7 @@ Any non-empty responses are JSON formatted messages. ...@@ -655,7 +655,7 @@ Any non-empty responses are JSON formatted messages.
} }
``` ```
* /classifier/coriant-info/*`equipment_name`*/*`card_id`*/*`port_number`* * /classifier/coriant-info/*`equipment name`*/*`entity name`*
Returns information about the effective path Returns information about the effective path
of a coriant card/port combination. of a coriant card/port combination.
...@@ -671,7 +671,6 @@ Any non-empty responses are JSON formatted messages. ...@@ -671,7 +671,6 @@ Any non-empty responses are JSON formatted messages.
"pop-info": { "pop-info": {
"type": "object", "type": "object",
"properties": { "properties": {
"absid": {"type": "integer"},
"name": {"type": "string"}, "name": {"type": "string"},
"abbreviation": {"type": "string"}, "abbreviation": {"type": "string"},
"country": {"type": "string"}, "country": {"type": "string"},
...@@ -680,7 +679,6 @@ Any non-empty responses are JSON formatted messages. ...@@ -680,7 +679,6 @@ Any non-empty responses are JSON formatted messages.
"latitude": {"type": "number"} "latitude": {"type": "number"}
}, },
"required": [ "required": [
"absid",
"name", "name",
"abbreviation", "abbreviation",
"country", "country",
...@@ -693,37 +691,46 @@ Any non-empty responses are JSON formatted messages. ...@@ -693,37 +691,46 @@ Any non-empty responses are JSON formatted messages.
"endpoint": { "endpoint": {
"type": "object", "type": "object",
"properties": { "properties": {
"name": {"type": "string"}, "equipment name": {"type": "string"},
"card id": {"type": "string"}, "card id": {"type": "string"},
"port number": {"type": "string"}, "port number": {"type": "string"},
"pop": {"$ref": "#/definitions/pop-info"} "pop": {"$ref": "#/definitions/pop-info"}
}, },
"required": ["name", "port number", "pop"], "required": ["equipment name", "port number", "pop"],
"additionalProperties": False
},
"path": {
"type": "object",
"properties": {
'category': {"type": "string"},
'circuit_type': {"type": "string"},
'service_type': {"type": "string"},
'peering_type': {"type": "string"},
'status': {"type": "string"},
'name': {"type": "string"},
'a': {"$ref": "#/definitions/endpoint"},
'b': {"$ref": "#/definitions/endpoint"}
},
"required": [
"category",
"circuit_type",
"service_type",
"peering_type",
"status",
"a",
"b"],
"additionalProperties": False "additionalProperties": False
} }
}, },
"type": "object", "type": "object",
"properties": { "properties": {
'absid': {"type": "integer"}, "equipment name": {"type": "string"},
'category': {"type": "string"}, "card id": {"type": "string"},
'circuit_type': {"type": "string"}, "port number": {"type": "string"},
'service_type': {"type": "string"}, "path": {"$ref": "#/definitions/path"}
'peering_type': {"type": "string"},
'status': {"type": "string"},
'name': {"type": "string"},
'a': {"$ref": "#/definitions/endpoint"},
'b': {"$ref": "#/definitions/endpoint"}
}, },
"required": [ "required": ["equipment name", "card id", "port number"],
"absid",
"category",
"circuit_type",
"service_type",
"peering_type",
"status",
"a",
"b"],
"additionalProperties": False "additionalProperties": False
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment