Implement: Content loading — parse JSON card files and validate structure #14
Labels
No labels
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:prototype
wayfinder:research
wayfinder:research
wayfinder:task
wayfinder:task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gaetan/knowledgify#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wayfinder map: #1
Dependencies: #13 (project scaffolding)
Description
Build the content loading package: parse JSON card files from the content/ directory, validate card structure, and return parsed cards.
Tasks
internal/content/packageID stringType string(values: "qa" for Q&A, "vf" for Vrai/Faux)Question stringAnswer stringExplanation string(optional, can be empty)Category stringTags []stringcontent/(e.g.,content/histoire.json).jsonfiles from content/ directory, parses, validates[]CardAcceptance criteria
internal/content.Load()reads JSON files and returns valid cards