Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion schema/content-manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,5 @@
],
"title": "ContentManifest",
"type": "object",
"x-schema-version": "1.7"
"x-schema-version": "1.8"
}
2 changes: 1 addition & 1 deletion schema/engine-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.2
0.13.0
21 changes: 15 additions & 6 deletions schema/lesson.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -943,11 +943,20 @@
"type": "string"
},
"src": {
"description": "Relative path inside the set's ``assets/`` directory ('assets/img/cat.png'). Resolved by the asset loader.",
"maxLength": 500,
"minLength": 1,
"title": "Src",
"type": "string"
"anyOf": [
{
"maxLength": 500,
"minLength": 1,
"type": "string"
},
{
"maxLength": 250000,
"pattern": "^data:image/[a-z0-9.+-]+;base64,",
"type": "string"
}
],
"description": "Image reference in one of two explicit formats (schema v1.8): a relative path inside the set's ``assets/`` directory ('assets/img/cat.png', <= 500 chars, resolved by the asset loader) OR an inline base64 data URI ('data:image/...;base64,...', its own 250000-char cap - sized for the reference consumer's 150-KiB upload compression: 153600 bytes -> 204800 base64 chars plus header). Repo content should prefer the assets/ path; the ``W-PIC-DATA-URI`` author lint flags inline data URIs.",
"title": "Src"
}
},
"required": [
Expand Down Expand Up @@ -1168,5 +1177,5 @@
],
"title": "Lesson",
"type": "object",
"x-schema-version": "1.7"
"x-schema-version": "1.8"
}
2 changes: 1 addition & 1 deletion schema/quality-rules.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema-version": "1.7",
"$schema-version": "1.8",
"_comment": "GENERATED from scripts/generate_lesson_schema.py (EXP-039). Do not edit. Shared quality minimums for the content quality gate (app + content repo).",
"rules": {
"minExerciseTypes": 2,
Expand Down