Skip to content

Render nil collection properties consistently - #297

Open
OskarEichler wants to merge 1 commit into
trailblazer:masterfrom
OskarEichler:codex/render-nil-collections
Open

Render nil collection properties consistently#297
OskarEichler wants to merge 1 commit into
trailblazer:masterfrom
OskarEichler:codex/render-nil-collections

Conversation

@OskarEichler

Copy link
Copy Markdown

Preserve a nil collection through the collection pipeline so Hash and JSON, XML and YAML bindings can emit their existing scalar nil representation when render_nil is enabled. This avoids each_with_index failures without changing nil parsing.

Verified across all formats with exact and current suites and dual-Ruby render and parse models.

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