Skip to content

docs: describe a null item the way the code stores it (Refs #1452) - #1470

Merged
zackees merged 1 commit into
obs-rust:masterfrom
MCPVOT:docs/1452-null-wording
Oct 20, 2026
Merged

zackees merged 1 commit into
obs-rust:masterfrom
MCPVOT:docs/1452-null-wording

Conversation

@MCPVOT

@MCPVOT MCPVOT commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Follow-up nit from the review of #1461 (zackees): the load_data doc comment said a null "becomes an empty object". The code does not do that - like C's obs_data_add_json_null, it stores an object item with no value (set_obj(key, None)), which is what makes the item serialize back to null.

Documentation only, no behavior change.

…1452)

The load_data doc said a null becomes an empty object. It does not: like
obs_data_add_json_null, it stores an object item with no value
(set_obj(key, None)), which is what makes the item serialize back to
null. Spotted in the review of obs-rust#1461.
@MCPVOT
MCPVOT requested a review from zackees as a code owner October 20, 2026 01:08
@zackees
zackees enabled auto-merge October 20, 2026 01:12
@zackees

zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member

Coordinator: the Fast Gate failure is unrelated to this docs change. callback::decl_parity::random_declarations_match_oracle hit a random input ("foo get5out/*/*abreturn\\\n") where C logs Expected 'return type' / Unexpected EOF at level 200 and the Rust parser logs nothing. Re-ran the failed job and enabled auto-merge.

@zackees
zackees added this pull request to the merge queue Oct 20, 2026
Merged via the queue into obs-rust:master with commit dcc06c9 Oct 20, 2026
43 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants