Skip to content

Commit

Permalink
Update Grants.kt make Scope optional (#210)
Browse files Browse the repository at this point in the history
Make Scope optional like in the API call

https://nylas.atlassian.net/browse/TW-2566

# License

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
atejada authored Feb 14, 2024
1 parent 91f7ee7 commit d5fb9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/nylas/models/Grant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data class Grant(
* Scopes specified for the grant.
*/
@Json(name = "scope")
val scope: List<String>,
val scope: List<String>? = null,
/**
* Unix timestamp when the grant was created.
*/
Expand Down

0 comments on commit d5fb9f8

Please sign in to comment.