Skip to content

docs: Fix - strings were being interpreted as True - #24593

Merged
antobinary merged 2 commits into
v3.0.x-developfrom
antobinary-patch-4
Apr 22, 2026
Merged

antobinary merged 2 commits into
v3.0.x-developfrom
antobinary-patch-4

Conversation

@antobinary

Copy link
Copy Markdown
Member
  • Improved the boolean values in CREATE api docs.

What does this PR do?

Improve the docs (CREATE API) - some "required" were incorrect. [ credit to @antonbsa for pointing it out]
I also turned some stringified booleans into booleans.

Closes Issue(s)

Closes # none

Motivation

Some values were incorrectly interpreted - a string interpretation was turned into a truthful boolean

image

- Improved the boolean values in CREATE api docs.
@antobinary antobinary added this to the Release 3.0 milestone Feb 2, 2026
@coderabbitai

coderabbitai Bot commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • v4.0.x-release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 84a9847c-6756-4cbf-841d-8af81eef5e8b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

A single documentation file (docs/docs/data/create.tsx) containing endpoint parameter metadata has been updated with normalized field declarations. String-based "required" descriptors (e.g., "(required for breakout room)", "Optional(Breakout Room)") have been converted to explicit boolean required: false flags. Default values have been standardized from string literals ("false", "true", "1") to proper type literals (false, true, 1). Descriptions for breakout-related fields have been expanded to clarify when they must be provided. This normalization affects approximately 20+ parameter entries across breakout room, lock settings, recording, and meeting configuration fields.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title is partially related to the changeset. It mentions fixing strings being interpreted as true, which aligns with the boolean literal conversion, but doesn't capture the main changes involving correcting 'required' field metadata.
Description check ✅ Passed The description is related to the changeset, explaining that boolean values were improved and some 'required' flags were incorrect in the CREATE API docs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch antobinary-patch-4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

sonarqubecloud Bot commented Feb 2, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
docs/docs/data/create.tsx (2)

250-250: ⚠️ Potential issue | 🟡 Minor

Incomplete fix: "true" should be true (boolean).

Same issue as above - this boolean default remains a string.

📝 Suggested fix
-    "default": "true",
+    "default": true,

485-485: ⚠️ Potential issue | 🟡 Minor

Incomplete fix: "true" should be true (boolean).

Another boolean default that remains a string.

📝 Suggested fix
-    "default": "true",
+    "default": true,
🤖 Fix all issues with AI agents
In `@docs/docs/data/create.tsx`:
- Line 101: Fix the typo in the documentation string for the breakout room
"description" property in create.tsx: replace the incorrect "The is of the main
room where the breakout was initiated." with "The ID of the main room where the
breakout was initiated." so the description for the breakout room clearly
references the parent room ID (update the "description" JSX fragment shown in
the diff).
- Line 119: Replace the string literal "true" with the boolean literal true in
the object that currently contains `"default": "true"` in
docs/docs/data/create.tsx; locate the object/field definition that sets a
default value (the entry with the "default" key) and change its value to true,
and if there is a TypeScript type or interface enforcing the field type, ensure
it expects a boolean rather than a string so the change is type-correct.
🧹 Nitpick comments (1)
docs/docs/data/create.tsx (1)

292-292: Incomplete fix: numeric defaults remain as strings.

Several numeric default values are still strings when they should be number literals for consistency. This field and others (learningDashboardCleanupDelayInMinutes, userCameraCap, meetingCameraCap, meetingExpireIfNoUserJoinedInMinutes, meetingExpireWhenLastUserLeftInMinutes) still use string defaults like "1", "2", etc., while maxNumPages at line 597 correctly uses 200 as a number.

📝 Suggested fixes for numeric defaults
 // Line 292 - endWhenNoModeratorDelayInMinutes
-    "default": "1",
+    "default": 1,

 // Line 306 - learningDashboardCleanupDelayInMinutes
-    "default": "2",
+    "default": 2,

 // Line 327 - userCameraCap
-    "default": "3",
+    "default": 3,

 // Line 334 - meetingCameraCap
-    "default": "0",
+    "default": 0,

 // Line 341 - meetingExpireIfNoUserJoinedInMinutes
-    "default": "5",
+    "default": 5,

 // Line 348 - meetingExpireWhenLastUserLeftInMinutes
-    "default": "1",
+    "default": 1,

Comment thread docs/docs/data/create.tsx Resolved
Comment thread docs/docs/data/create.tsx Resolved
@antobinary
antobinary changed the base branch from v3.0.x-release to v3.0.x-develop April 22, 2026 18:22
@antobinary
antobinary merged commit a1039bf into v3.0.x-develop Apr 22, 2026
8 checks passed
@antobinary
antobinary deleted the antobinary-patch-4 branch April 22, 2026 18:24
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant