Raw schema
{
"type": "object",
"properties": {
"site": {
"default": "fr",
"description": "Boutique : \"fr\" = eglise.shop (≈5 600 livres en français, défaut), \"en\" = en.eglise.shop (≈2 800 livres en anglais).",
"type": "string",
"enum": [
"fr",
"en"
]
},
"title": {
"type": "string",
"minLength": 2,
"maxLength": 200
},
"subtitle": {
"type": "string",
"minLength": 0,
"maxLength": 200
},
"author_name": {
"type": "string",
"minLength": 2,
"maxLength": 120
},
"author_email": {
"type": "string",
"maxLength": 254,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"language": {
"type": "string",
"enum": [
"fr",
"en"
],
"description": "Language of the book."
},
"summary": {
"type": "string",
"minLength": 200,
"maxLength": 4000,
"description": "Plain-text summary, 200–4000 characters, at most 2 URLs (only the manuscript/cover links)."
},
"category": {
"type": "string",
"minLength": 2,
"maxLength": 100,
"description": "Suggested category, e.g. 'Prière', 'Vie chrétienne', 'Theology'."
},
"price": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000000
},
"currency": {
"type": "string",
"enum": [
"XOF",
"EUR",
"USD",
"CAD",
"CHF",
"GBP",
"XAF",
"NGN",
"AUD",
"ZAR",
"MAD",
"TRY"
]
},
"formats": {
"minItems": 1,
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"paper",
"pdf",
"audio"
]
}
},
"isbn": {
"type": "string",
"pattern": "^(97[89])?[\\d\\- ]{9,17}[\\dXx]$"
},
"manuscript_url": {
"type": "string",
"maxLength": 500
},
"cover_url": {
"type": "string",
"maxLength": 500
},
"agent_name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"rights_confirmed": {
"type": "boolean",
"const": true,
"description": "Must be true: the author states they hold the rights."
},
"notes": {
"description": "Leave empty.",
"type": "string",
"maxLength": 500
}
},
"required": [
"title",
"author_name",
"author_email",
"language",
"summary",
"category",
"price",
"currency",
"formats",
"manuscript_url",
"cover_url",
"rights_confirmed"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}