Skip to content

[TA-3805] docs(calendars): document tentative_as_busy in get_free_busy request body#546

Merged
AaronDDM merged 1 commit into
mainfrom
ad-TA-3805-free-busy-tentative-as-busy
Jul 21, 2026
Merged

[TA-3805] docs(calendars): document tentative_as_busy in get_free_busy request body#546
AaronDDM merged 1 commit into
mainfrom
ad-TA-3805-free-busy-tentative-as-busy

Conversation

@AaronDDM

@AaronDDM AaronDDM commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds tentative_as_busy support to the Calendars#get_free_busy request body in the Ruby SDK, aligning it with the typed free/busy request models in the other Nylas SDKs (e.g. Python's GetFreeBusyRequest).

The Ruby SDK is entirely Hash-based and has no type system, so customers can already pass tentative_as_busy through the untyped request_body Hash. As with the other SDKs, this change makes the field a documented, first-class part of the request contract — the Ruby-idiomatic equivalent of a typed request model is documenting the accepted hash keys in the YARD comment (matching how create/update document their nested request fields).

Changes

  • Document the get_free_busy request body keys (start_time, end_time, emails, tentative_as_busy) in the YARD comment. tentative_as_busy uses wording consistent with the other SDKs: when set to false, treats tentative calendar events as busy: false; only applicable for Microsoft and EWS calendar providers; defaults to true.
  • Fix the identifier param type in the same doc block (strString).
  • Add a spec asserting tentative_as_busy is forwarded in the request body.
  • Add an Unreleased CHANGELOG entry.

Testing

  • bundle exec rspec spec/nylas/resources/calendars_spec.rb — 11 examples, 0 failures.
  • bundle exec rubocop lib/nylas/resources/calendars.rb spec/nylas/resources/calendars_spec.rb — no offenses.

Related

  • TA-3805

…y request body

- Document the get_free_busy request body keys (start_time, end_time,
  emails, tentative_as_busy) in the YARD comment, aligning the Ruby SDK
  with the typed free/busy request models in the other Nylas SDKs
- Add a spec asserting tentative_as_busy is forwarded in the request body
- Add an Unreleased CHANGELOG entry

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@qasim-nylas qasim-nylas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@AaronDDM
AaronDDM merged commit 0e8e7d5 into main Jul 21, 2026
8 checks passed
@AaronDDM AaronDDM mentioned this pull request Jul 21, 2026
2 tasks
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.

2 participants