Repository navigation
Fix/update openapi substitution models - #69
Merged
Merged
Conversation
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.
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. ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #
Changes
Verification
gradle :composeApp:compileDebugKotlinAndroidgradle :composeApp:testDebugUnitTestgradle :composeApp:lintDebug