Skip to content

feat chaotic: Add default values for array fields - #1372

Open
Tnirpps wants to merge 3 commits into
userver-framework:developfrom
Tnirpps:feat/chaotic-array-defaults
Open

Tnirpps wants to merge 3 commits into
userver-framework:developfrom
Tnirpps:feat/chaotic-array-defaults

Conversation

@Tnirpps

@Tnirpps Tnirpps commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Allow optional array fields to specify defaults, including empty arrays, nested arrays, and arrays of objects. Defaults are parsed through the field schema

Review note: An invalid array default passes code generation and compilation, but throws when the containing struct is first constructed — even when the input explicitly provides that field. For example, a default object missing required name throws Error at path '[0].name': Field is missing.

@Tnirpps
Tnirpps requested a review from a team as a code owner November 5, 2026 15:54

This branch has not been deployed

No deployments
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