296 lines
7.8 KiB
JSON
296 lines
7.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "SeriesStudioDocument",
|
|
"description": "Schéma de description structurée d'une série d'exercices, corrigé ou fiche de résumé pour series-studio",
|
|
"type": "object",
|
|
"required": [
|
|
"schema_version",
|
|
"pages_cibles",
|
|
"cartouche",
|
|
"exercices"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"type": "string",
|
|
"enum": ["1.0.0", "1.1.0"],
|
|
"description": "Version du schéma (1.0.0 ou 1.1.0)"
|
|
},
|
|
"type_doc": {
|
|
"type": "string",
|
|
"enum": ["serie", "corrige", "resume"],
|
|
"description": "Type de document (serie, corrige ou resume)"
|
|
},
|
|
"pages_cibles": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"description": "Nombre de pages cible pour le document (ex: 2)"
|
|
},
|
|
"theme": {
|
|
"type": "string",
|
|
"description": "Thème graphique à appliquer (ex: classique, sobre, encre, pastel)"
|
|
},
|
|
"preamble": {
|
|
"type": "string",
|
|
"description": "Remarque d'en-tête (ex: N.B.)"
|
|
},
|
|
"cartouche": {
|
|
"type": "object",
|
|
"description": "Métadonnées de l'en-tête officiel du document",
|
|
"required": [
|
|
"titre",
|
|
"type_doc",
|
|
"discipline",
|
|
"classe",
|
|
"enseignant",
|
|
"annee",
|
|
"lycee"
|
|
],
|
|
"properties": {
|
|
"titre": {
|
|
"type": "string",
|
|
"description": "Titre principal de la série (ex: COMPLEXES)"
|
|
},
|
|
"sous_titre": {
|
|
"type": "string",
|
|
"description": "Sous-titre ou description courte"
|
|
},
|
|
"type_doc": {
|
|
"type": "string",
|
|
"description": "Type de document affiché dans le cartouche (ex: SÉRIE D'EXERCICES, CORRIGÉ, FICHE DE COURS)"
|
|
},
|
|
"discipline": {
|
|
"type": "string",
|
|
"description": "Discipline enseignée (ex: Mathématiques)"
|
|
},
|
|
"classe": {
|
|
"type": "string",
|
|
"description": "Niveau et section (ex: 4ème Sciences Techniques)"
|
|
},
|
|
"enseignant": {
|
|
"type": "string",
|
|
"description": "Nom de l'enseignant (ex: Heykel ZAYANI)"
|
|
},
|
|
"titre_enseignant": {
|
|
"type": "string",
|
|
"description": "Titre officiel de l'enseignant (ex: P.P.É.C.E.)"
|
|
},
|
|
"annee": {
|
|
"type": "string",
|
|
"description": "Année scolaire (ex: 2026 / 2027)"
|
|
},
|
|
"lycee": {
|
|
"type": "string",
|
|
"description": "Établissement scolaire (ex: Lycée Pilote)"
|
|
}
|
|
}
|
|
},
|
|
"exercices": {
|
|
"type": "array",
|
|
"description": "Liste ordonnée des exercices",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"numero",
|
|
"elements"
|
|
],
|
|
"properties": {
|
|
"numero": {
|
|
"type": "string",
|
|
"description": "Numéro d'exercice (ex: '1')"
|
|
},
|
|
"titre": {
|
|
"type": "string",
|
|
"description": "Titre thématique de l'exercice"
|
|
},
|
|
"points": {
|
|
"type": "string",
|
|
"description": "Barème de l'exercice (ex: '5 points')"
|
|
},
|
|
"section_header": {
|
|
"type": "string",
|
|
"description": "Bandeau de section thématique (ex: 'CHIMIE (9 points)')"
|
|
},
|
|
"breakable_box": {
|
|
"type": "boolean",
|
|
"description": "Indique si la boîte Typst est sécable sur plusieurs pages"
|
|
},
|
|
"elements": {
|
|
"type": "array",
|
|
"description": "Éléments séquentiels de l'exercice",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"question",
|
|
"display_equation",
|
|
"part_header",
|
|
"page_break",
|
|
"text",
|
|
"figure",
|
|
"enonce",
|
|
"solution",
|
|
"methode",
|
|
"definition",
|
|
"propriete",
|
|
"formule",
|
|
"exemple",
|
|
"a_retenir",
|
|
"reaction",
|
|
"table",
|
|
"side_by_side",
|
|
"section_header",
|
|
"nb"
|
|
]
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"text_typst": {
|
|
"type": "string"
|
|
},
|
|
"text_docx": {
|
|
"type": "string"
|
|
},
|
|
"latex": {
|
|
"type": "string"
|
|
},
|
|
"typst": {
|
|
"type": "string"
|
|
},
|
|
"titre": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"points": {
|
|
"type": "string"
|
|
},
|
|
"indent_level": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"space_before": {
|
|
"type": "number"
|
|
},
|
|
"space_after": {
|
|
"type": "number"
|
|
},
|
|
"bold_prefix": {
|
|
"type": "string"
|
|
},
|
|
"image": {
|
|
"type": "string"
|
|
},
|
|
"figure_id": {
|
|
"type": "string"
|
|
},
|
|
"width_typst": {
|
|
"type": "string"
|
|
},
|
|
"width_docx_inches": {
|
|
"type": "number"
|
|
},
|
|
"columns": {
|
|
"type": "array"
|
|
},
|
|
"headers": {
|
|
"type": "array"
|
|
},
|
|
"rows": {
|
|
"type": "array"
|
|
},
|
|
"left": {
|
|
"type": "object"
|
|
},
|
|
"right": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"annexe": {
|
|
"type": "object",
|
|
"description": "Annexe officielle éventuelle (figures, grille QCM, etc.)",
|
|
"properties": {
|
|
"titre": {
|
|
"type": "string"
|
|
},
|
|
"sous_titre": {
|
|
"type": "string"
|
|
},
|
|
"colonnes": {
|
|
"type": "array"
|
|
},
|
|
"grids": {
|
|
"type": "array"
|
|
},
|
|
"layout": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"figures": {
|
|
"type": "array",
|
|
"description": "Définition déclarative des figures géométriques / tracés",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"kind"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": [
|
|
"declarative",
|
|
"file"
|
|
]
|
|
},
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"figsize": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"xlim": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"ylim": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"aspect": {
|
|
"type": "string"
|
|
},
|
|
"title_box": {
|
|
"type": "object"
|
|
},
|
|
"elements": {
|
|
"type": "array"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|