Skip to content

Commit

Permalink
Fix schema issue in the Event model (#203)
Browse files Browse the repository at this point in the history
# Description
This PR makes `createdAt` and `updatedAt` optional in the SDK to reflect
the API.

# License
<!-- Your PR comment must contain the following line for us to merge the
PR. -->
I confirm that this contribution is made under the terms of the MIT
license and that I have the authority necessary to make this
contribution on behalf of its copyright owner.
  • Loading branch information
mrashed-dev authored Feb 8, 2024
1 parent 9bc4b02 commit 2f99817
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Nylas Java SDK Changelog

## Unreleased

* Fix schema issue in the `Event` model

## [2.0.0] - Released 2024-02-05

### BREAKING CHANGES
Expand Down
20 changes: 10 additions & 10 deletions src/main/kotlin/com/nylas/models/Event.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ data class Event(
*/
@Json(name = "visibility")
val visibility: EventVisibility = EventVisibility.DEFAULT,
/**
* Unix timestamp when the event was created.
*/
@Json(name = "created_at")
val createdAt: Long = 0,
/**
* Unix timestamp when the event was last updated.
*/
@Json(name = "updated_at")
val updatedAt: Long = 0,
/**
* Representation of conferencing details for events. Conferencing object can be in one of two formats (sub-objects):
* - [Conferencing.Autocreate]
Expand Down Expand Up @@ -140,6 +130,16 @@ data class Event(
*/
@Json(name = "capacity")
val capacity: Int? = null,
/**
* Unix timestamp when the event was created.
*/
@Json(name = "created_at")
val createdAt: Long? = null,
/**
* Unix timestamp when the event was last updated.
*/
@Json(name = "updated_at")
val updatedAt: Long? = null,
) {
/**
* Get the type of object.
Expand Down

0 comments on commit 2f99817

Please sign in to comment.