-
-
Notifications
You must be signed in to change notification settings - Fork 8
Change additionalData from String to JSONObject #361 #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| import java.util.Calendar; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import org.json.JSONObject; | ||
|
|
||
| /** | ||
| * For documentation, see https://github.com/elimu-ai/webapp/tree/main/src/main/java/ai/elimu/entity | ||
|
|
@@ -27,7 +28,7 @@ public abstract class LearningEventGson extends BaseEntityGson { | |
| * {'spelling_consistency': 'HIGHLY_PHONEMIC'} | ||
| * </pre> | ||
| */ | ||
| private String additionalData; | ||
| private JSONObject additionalData; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add missing import for JSONObject to fix compilation error. The pipeline failure indicates that Add the appropriate import at the top of the file: import ai.elimu.model.v2.enums.analytics.LearningEventType;
import ai.elimu.model.v2.gson.BaseEntityGson;
+import com.google.gson.JsonObject;
import java.util.Calendar;And update the field declaration: - private JSONObject additionalData;
+ private JsonObject additionalData;🧰 Tools🪛 GitHub Actions: Maven CI[error] 12-30: Compilation error: cannot find symbol class JSONObject in LearningEventGson.java at lines 12 and 30. 🤖 Prompt for AI Agents |
||
|
|
||
| @Deprecated | ||
| private LearningEventType learningEventType; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add missing import for JSONObject to fix compilation error.
The pipeline failure indicates that
JSONObjectcannot be resolved. For consistency with theLearningEventGsonclass and to leverage Gson's capabilities effectively, useJsonObjectfrom Gson. This ensures robust data handling that supports elimu.ai's mission to build innovative learning software that empowers out-of-school children to teach themselves basic reading📖, writing✍🏽 and math🔢 within 6 months.Add the appropriate import at the top of the file:
import ai.elimu.model.v2.enums.analytics.AssessmentEventType; import ai.elimu.model.v2.gson.BaseEntityGson; +import com.google.gson.JsonObject; import java.util.Calendar;And update the field declaration:
📝 Committable suggestion
🧰 Tools
🪛 GitHub Actions: Maven CI
[error] 12-51: Compilation error: cannot find symbol class JSONObject in AssessmentEventGson.java at lines 12 and 51.
🤖 Prompt for AI Agents