Lewati ke konten

Universal Data Contracts & Schema

Sinema menggunakan standarisasi kontrak data (Data Contracts) berbasis JSON Schema untuk memastikan konsistensi seluruh modul, template, dan fungsi import/export.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SinemaCampaignSource",
"type": "object",
"required": ["id", "title", "target_url"],
"properties": {
"id": { "type": "string", "format": "uuid" },
"title": { "type": "string", "minLength": 1 },
"subtitle": { "type": "string" },
"developer": { "type": "string" },
"icon_url": { "type": "string", "format": "uri" },
"featured_image": { "type": "string", "format": "uri" },
"gallery": { "type": "array", "items": { "type": "string" } },
"description": { "type": "string" },
"version": { "type": "string", "example": "v3.2.1" },
"file_size": { "type": "string", "example": "32.4 MB" },
"rating": { "type": "number", "minimum": 1.0, "maximum": 5.0 },
"downloads_count": { "type": "string", "example": "10,000,000+" },
"target_url": { "type": "string", "format": "uri" }
}
}