Files
MLOPS/docker-compose/transactions-schema.json
2025-10-06 19:52:00 +00:00

38 lines
1.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Transactions",
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "The email address of the user involved in the transaction."
},
"index": {
"type": "integer",
"description": "A numeric index associated with the transaction."
},
"price": {
"type": "string",
"pattern": "^XXX \\d+\\.\\d{6}$",
"description": "A string representing the price of the product, including a currency code followed by the amount."
},
"product_url": {
"type": "string",
"format": "uri",
"description": "A URL that points to the product involved in the transaction."
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The timestamp of when the transaction occurred, formatted in ISO 8601."
},
"user_id": {
"type": "integer",
"description": "A numeric identifier for the user."
}
},
"required": ["email", "index", "price", "product_url", "timestamp", "user_id"],
"additionalProperties": false
}