JSON Schema
- Viewer
- Schema
Loading ....
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schemas.json.playbyplay.domain.basketball.v1",
"definitions": {
"AttributesBase": {
"type": "object"
},
"AuditFields": {
"type": "object",
"additionalProperties": false,
"properties": {
"startUtc": {
"type": "string",
"format": "date-time"
},
"endUtc": {
"type": "string",
"format": "date-time"
},
"sequenceNumber": {
"type": "integer"
},
"createdUtc": {
"type": "string",
"format": "date-time"
},
"insertedUtc": {
"type": "string",
"format": "date-time"
},
"deletedUtc": {
"type": "string",
"format": "date-time"
},
"publishedUtc": {
"type": "string",
"format": "date-time"
},
"confirmedUtc": {
"type": "string",
"format": "date-time"
},
"confidence": {
"$ref": "#/definitions/Confidence"
},
"externalIds": {
"type": "array",
"prefixItems": {
"$ref": "#/definitions/ExternalId"
}
}
},
"required": [
"sequenceNumber",
"createdUtc",
"publishedUtc",
"confidence"
]
},
"ChallengeAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"competitor": {
"type": "string"
},
"reason": {
"type": "string",
"enum": [
"Unknown",
"Clock",
"TwoPoints",
"ThreePoints",
"FreeThrowShooter",
"OutOfBounds",
"Foul",
"GoalTending",
"Violence"
]
},
"type": {
"type": "string",
"enum": [
"Unknown",
"Full",
"Short",
"Officials",
"Media",
"Commercials"
]
},
"outcome": {
"type": "string",
"enum": [
"Unknown",
"Successful",
"Unsuccessful"
]
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"gameClock",
"period"
]
},
"CoachFoulAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"competitor": {
"type": "string"
},
"coach": {
"type": "string"
},
"official": {
"type": "string"
},
"freeThrowsAwarded": {
"type": "integer"
},
"type": {
"type": "string",
"enum": [
"Unknown",
"Bench",
"Coach",
"Disqualifying"
]
},
"qualifiers": {
"type": "array",
"prefixItems": {
"type": "string",
"enum": [
"Unknown",
"ClassA",
"ClassB",
"Direct",
"Indirect",
"GameDisqualification",
"Fighting"
]
}
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"competitor",
"gameClock",
"period"
]
},
"Confidence": {
"type": "object",
"additionalProperties": false,
"properties": {
"score": {
"type": "number"
},
"flagged": {
"type": "boolean"
}
},
"required": [
"score",
"flagged"
]
},
"ExternalId": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"id",
"type"
]
},
"FreeThrowAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"points": {
"type": "integer"
},
"isSuccessful": {
"type": "boolean"
},
"competitor": {
"type": "string"
},
"shooter": {
"type": "string"
},
"attemptSequence": {
"type": "integer"
},
"qualifiers": {
"type": "array",
"prefixItems": {
"type": "string",
"enum": [
"Unknown",
"SecondChance",
"FastBreak",
"FromTurnover"
]
}
},
"foulId": {
"type": "string"
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"points",
"competitor",
"gameClock",
"period"
]
},
"ParticipationAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"competitor": {
"type": "string"
},
"participant": {
"type": "string"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"competitor",
"participant"
]
},
"Period": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"Unknown",
"Pregame",
"Regular",
"Overtime"
]
},
"number": {
"type": "integer"
}
},
"required": [
"type",
"number"
]
},
"PeriodTransitionAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"type": "string",
"enum": [
"Unknown",
"Pending",
"InProgress",
"Finished",
"Confirmed",
"Cancelled"
]
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"gameClock",
"period"
]
},
"PlayerFoulAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"competitor": {
"type": "string"
},
"player": {
"type": "string"
},
"official": {
"type": "string"
},
"freeThrowsAwarded": {
"type": "integer"
},
"type": {
"type": "array",
"prefixItems": {
"type": "string",
"enum": [
"Unknown",
"Offensive",
"Personal",
"Technical",
"Disqualifying",
"Unsportsmanlike",
"Intentional",
"ThrowIn"
]
}
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"competitor",
"gameClock",
"period"
]
},
"ProtestAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"competitor": {
"type": "string"
},
"reason": {
"type": "string",
"enum": [
"Unknown",
"Scorekeeping",
"Timekeeping",
"ShotClock",
"Other"
]
},
"description": {
"type": "string"
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"competitor",
"gameClock",
"period"
]
},
"ShotAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"points": {
"type": "integer"
},
"isSuccessful": {
"type": "boolean"
},
"competitor": {
"type": "string"
},
"shooter": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"Unknown",
"Dunk",
"Layup",
"Fadeaway",
"TipInDunk",
"TipInLayup",
"JumpShot",
"AlleyOop",
"DrivingLayup",
"HookShot",
"FloatingJumpShot",
"StepbackJumpShot",
"PullupJumpShot",
"TurnaroundJumpShot",
"WrongBasket",
"ReverseLayup",
"EuroStep",
"AlleyOopDunk"
]
},
"qualifiers": {
"type": "array",
"prefixItems": {
"type": "string",
"enum": [
"Unknown",
"SecondChance",
"FastBreak",
"FromTurnover",
"PointsInThePaint",
"Blocked"
]
}
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"points",
"competitor",
"gameClock",
"period"
]
},
"TimeoutAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"competitor": {
"type": "string"
},
"official": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"Unknown",
"Full",
"Short",
"Officials",
"Media",
"Commercials"
]
},
"gameClock": {
"type": "string"
},
"shotClock": {
"type": "string"
},
"wallClock": {
"type": "string",
"format": "date-time"
},
"period": {
"$ref": "#/definitions/Period"
}
},
"required": [
"gameClock",
"period"
]
},
"UnifiedEvent": {
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "string"
},
"source": {
"type": "string",
"enum": [
"Unknown",
"GeniusPremium",
"GeniusLiveStats",
"GeniusScoresheet",
"GeniusSportsInPlay"
]
},
"correlationId": {
"type": "string"
},
"id": {
"type": "string"
},
"insertedBeforeId": {
"type": "string"
},
"fixture": {
"type": "string"
},
"eventType": {
"type": "string"
},
"attributes": {
"$ref": "#/definitions/AttributesBase"
},
"audit": {
"$ref": "#/definitions/AuditFields"
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"version",
"source",
"correlationId",
"id",
"fixture",
"eventType",
"attributes",
"audit"
]
}
},
"anyOf": [
{
"$ref": "#/definitions/AuditFields"
},
{
"$ref": "#/definitions/UnifiedEvent"
},
{
"$ref": "#/definitions/Confidence"
},
{
"$ref": "#/definitions/ExternalId"
},
{
"$ref": "#/definitions/Period"
},
{
"$ref": "#/definitions/ChallengeAttributes"
},
{
"$ref": "#/definitions/CoachFoulAttributes"
},
{
"$ref": "#/definitions/FreeThrowAttributes"
},
{
"$ref": "#/definitions/ParticipationAttributes"
},
{
"$ref": "#/definitions/PeriodTransitionAttributes"
},
{
"$ref": "#/definitions/PlayerFoulAttributes"
},
{
"$ref": "#/definitions/ProtestAttributes"
},
{
"$ref": "#/definitions/ShotAttributes"
},
{
"$ref": "#/definitions/TimeoutAttributes"
}
],
"#schema": "#"
}