addedOutput schema / properties / head_to_head
Added value: +{
+ "description": "the two boxers named in the query: whether and how often they met, the bout between them that is scheduled, and each side's record, last fights and next bout",
+ "properties": {
+ "a": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "last_fights": {
+ "description": "the last three completed bouts, newest first",
+ "items": {
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "method": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "opponent": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "result": {
+ "description": "W, L, D or NC for this side",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "round": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "date",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ },
+ "next_bout": {
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "opponent": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "record": {
+ "description": "W-L-D today",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "url",
+ "last_fights"
+ ],
+ "type": "object"
+ },
+ "b": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "last_fights": {
+ "description": "the last three completed bouts, newest first",
+ "items": {
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "method": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "opponent": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "result": {
+ "description": "W, L, D or NC for this side",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "round": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "date",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ },
+ "next_bout": {
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "opponent": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "record": {
+ "description": "W-L-D today",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "url",
+ "last_fights"
+ ],
+ "type": "object"
+ },
+ "bouts": {
+ "description": "the bouts between them, newest first (at most 5)",
+ "items": {
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "method": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "round": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "status": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "winner": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "date",
+ "status",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "met": {
+ "description": "completed bouts between them",
+ "type": "integer"
+ },
+ "scheduled": {
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "summary": {
+ "description": "one sentence: how often they met and with what result, or that they never fought; the scheduled date; both records",
+ "type": "string"
+ }
+ },
+ "required": [
+ "summary",
+ "met",
+ "bouts",
+ "a",
+ "b"
+ ],
+ "type": "object"
+}