feat: implement tailwind validations and basic example

This commit is contained in:
2025-06-01 22:34:55 +02:00
parent 5872f04b32
commit 10fce10033
6 changed files with 180 additions and 28 deletions

View File

@@ -17,6 +17,11 @@
"type": "string",
"description": "Detailed description of the module content and purpose"
},
"mode": {
"type": "string",
"enum": ["css", "tailwind"],
"description": "Whether this module teaches CSS or Tailwind"
},
"difficulty": {
"type": "string",
"enum": ["beginner", "intermediate", "advanced"],
@@ -53,6 +58,15 @@
"type": "string",
"description": "Detailed description of the lesson content and concepts"
},
"mode": {
"type": "string",
"enum": ["css", "tailwind"],
"description": "Override module mode for individual lessons"
},
"tailwindConfig": {
"type": "object",
"description": "Custom Tailwind configuration if needed"
},
"task": {
"type": "string",
"description": "The specific task instructions for the student to complete"
@@ -91,7 +105,7 @@
"properties": {
"type": {
"type": "string",
"enum": ["contains", "not_contains", "regex", "property_value", "syntax", "custom"],
"enum": ["contains", "contains_class", "not_contains", "regex", "property_value", "syntax", "custom"],
"description": "Type of validation to perform"
},
"value": {