Skip to content

Fix/update openapi substitution models - #69

Merged
merenyimiklos merged 6 commits into
mainfrom
fix/update-openapi-substitution-models
Nov 19, 2026
Merged

merenyimiklos merged 6 commits into
mainfrom
fix/update-openapi-substitution-models

Conversation

@merenyimiklos

Copy link
Copy Markdown
Contributor

Summary

Closes #

Changes

Verification

  • gradle :composeApp:compileDebugKotlinAndroid
  • gradle :composeApp:testDebugUnitTest
  • gradle :composeApp:lintDebug
  • Screenshots or a screen recording — if the UI changed (Android and/or iOS)

feat(api): add Chronos OpenAPI spec and regenerate API client

* Add `chronos-openapi.json` OpenAPI specification for the Chronos backend.
* Regenerate API client models, service interfaces, and generated test files.
* Update `ApiClient` default base URL, JSON serialization options, and `sessionAuth` query parameter handling.
```
build(api): disable OpenAPI test generation and fix model serialization

* Disable OpenAPI model and API test generation (`generateModelTests`, `generateApiTests`) in `build.gradle.kts` and remove auto-generated test files.
* Fix duplicate `@Serializable` annotations across OpenAPI model data classes.
* Replace `Any?` types with `JsonElement?` in API response models to ensure proper Kotlinx serialization handling.
* Remove unused `serializationLibrary` configuration from `build.gradle.kts`.
```
* Update `generateFilcApiClient` Gradle task to use `chronos-openapi.json` as the input specification.
* Add `ThemeApi` for retrieving and setting the site-wide seasonal theme.
* Add avatar management endpoints (`postUsersAvatar`, `deleteUsersAvatar`, `getUsersAvatarsByFile`) to `UsersApi`.
* Add `getPingTime` to `PingApi` to fetch authoritative server time and timezone offsets.
* Add models for activity logs (`GetActivityLog200Response`).
* Update `MovedLessonApi` models to support manual moved lesson definitions (cohorts, source room, subject, and teachers).
* Update notification settings and preference models with new color scheme and email channel configuration fields.
feat(api): add ActivityLogApi client
```
refactor(api): refine field types and clean up generated API response models

* Replace `kotlin.Any?` types with explicit `Boolean`, `String`, and `JsonElement` types across API models.
* Remove `HashMap` inheritance from notification metadata models.
* Clean up unused imports for generated `AnyOf` types.
```
@merenyimiklos
merenyimiklos merged commit 935f7fa into main Nov 19, 2026
9 checks passed
@merenyimiklos
merenyimiklos deleted the fix/update-openapi-substitution-models branch November 19, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant