-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix unlock door api models #70
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks for the update 🙂
Just two smallish comments.
@@ -19,5 +19,5 @@ public data class ApiVehicle( | |||
@SerialName(value = "storage_spaces") val storageSpaces: Int, | |||
val autonomous: Boolean, | |||
@SerialName(value = "supports_door_open_requests") val supportsDoorOpenRequests: Boolean?, |
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.
This should also be non-null, right? 🤔
And did you asked about the supports_door_open_requests
already? 🤔
Right now it is not delivered in case it is non-autonomous.
However, it should be set to false in that case.
@@ -280,7 +280,7 @@ fun createApiVehicle( | |||
storageSpace: Int = 0, | |||
autonomous: Boolean = false, | |||
supportsDoorOpenRequests: Boolean? = null, |
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.
Also, not null
🤓
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.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (5)
- library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiUnlockDoorRequest.kt: Language not supported
- library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiVehicle.kt: Language not supported
- library/src/commonTest/kotlin/com/ioki/passenger/api/models/ApiRideResponseTest.kt: Language not supported
- library/src/commonTest/kotlin/com/ioki/passenger/api/models/ApiUnlockDoorRequestTest.kt: Language not supported
- library/src/commonTest/kotlin/com/ioki/passenger/api/models/ModelsHelper.kt: Language not supported
In relation with https://github.com/dbdrive/beiwagen-android/pull/7138