Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed JSON deserialization #10

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ public UsosStage stage(UsosStageParam params) {
UsosStage.class);
}

@SuppressWarnings("unchecked")
public List<UsosStudentProgramme> student() {
return requestWithAccessToken(requestFactory.get(
return List.of(requestWithAccessToken(requestFactory.get(
"services/progs/student",
FieldSelector.fromRequest(UsosStudentProgramme.class)),
List.class);
UsosStudentProgramme[].class));
}

public UsosStudentProgramme studentProgramme(UsosStudentProgrammeParam params) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void stage() {
@Test
void student() {
log(userApi.progs().student());
log(userApi.progs().student().get(0).programme().id());
}

@Test
Expand Down
Loading