Skip to content

Commit

Permalink
feat: add Flashcards schema
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Oct 7, 2024
1 parent 8bf5b5d commit ccbaf3b
Showing 1 changed file with 220 additions and 0 deletions.
220 changes: 220 additions & 0 deletions modulix.json-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,116 @@ export const schema = {
"additionalProperties": false,
"title": "embed"
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"type": {
"type": "string",
"enum": [
"flashcards"
]
},
"title": {
"type": "string"
},
"instruction": {
"type": "string",
"format": "jodit"
},
"introImage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": false
},
"cards": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"recto": {
"type": "object",
"properties": {
"image": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": false
},
"text": {
"type": "string"
}
},
"required": [
"text"
],
"additionalProperties": false
},
"verso": {
"type": "object",
"properties": {
"image": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": false
},
"text": {
"type": "string",
"format": "jodit"
}
},
"required": [
"text"
],
"additionalProperties": false
}
},
"required": [
"id"
],
"additionalProperties": false,
"title": "card"
}
}
},
"required": [
"id",
"type",
"title"
],
"additionalProperties": false,
"title": "flashcards"
},
{
"type": "object",
"properties": {
Expand Down Expand Up @@ -806,6 +916,116 @@ export const schema = {
"additionalProperties": false,
"title": "embed"
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"type": {
"type": "string",
"enum": [
"flashcards"
]
},
"title": {
"type": "string"
},
"instruction": {
"type": "string",
"format": "jodit"
},
"introImage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": false
},
"cards": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"recto": {
"type": "object",
"properties": {
"image": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": false
},
"text": {
"type": "string"
}
},
"required": [
"text"
],
"additionalProperties": false
},
"verso": {
"type": "object",
"properties": {
"image": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": false
},
"text": {
"type": "string",
"format": "jodit"
}
},
"required": [
"text"
],
"additionalProperties": false
}
},
"required": [
"id"
],
"additionalProperties": false,
"title": "card"
}
}
},
"required": [
"id",
"type",
"title"
],
"additionalProperties": false,
"title": "flashcards"
},
{
"type": "object",
"properties": {
Expand Down

0 comments on commit ccbaf3b

Please sign in to comment.