fix: van snake_case naar camelCase

This commit is contained in:
Gabriellvl 2025-02-28 18:53:36 +01:00
parent 594aa540dd
commit 5ca1bebe38

View file

@ -17,24 +17,30 @@ function filterLearningObjectMetadata(data: any, htmlUrl: string) {
version: data.version, version: data.version,
title: data.title, title: data.title,
html_url: htmlUrl, htmlUrl,
// Html content object // Html content object
language: data.language, language: data.language,
difficulty: data.difficulty, difficulty: data.difficulty,
estimated_time: data.estimated_time, estimatedTime: data.estimated_time,
available: data.available, available: data.available,
teacher_exclusive: data.teacher_exclusive, teacherExclusive: data.teacher_exclusive,
educational_goals: data.educational_goals, educationalGoals: data.educational_goals,
// List with learningObjects // List with learningObjects
keywords: data.keywords, keywords: data.keywords,
// For search // For search
description: data.description, description: data.description,
// For search (not an actual description) // For search (not an actual description)
target_ages: data.target_ages, targetAges: data.target_ages,
contentType: data.content_type,
// Text/plain, text/md, image/image-block,
// Image/image/, audio/mpeg or extern
contentLocation: data.content_location,
// If content type extern
// Skos concepts needed ?? // Skos concepts needed ??
// Content type needed ?? // Return value needed ??
// Content location ?? // Callback_url to send response
// Callback_scheme
}; };
} }