Skip to content

feat(schema): reject complex type defaults #1011 #1017

Merged
laskoviymishka merged 2 commits into
apache:mainfrom
tanmayrauth:feat/1011-reject-complex-type-defaults
May 6, 2026
Merged

feat(schema): reject complex type defaults #1011 #1017
laskoviymishka merged 2 commits into
apache:mainfrom
tanmayrauth:feat/1011-reject-complex-type-defaults

Conversation

@tanmayrauth
Copy link
Copy Markdown
Contributor

Validates that initial-default / write-default on struct, list, and map fields match the expected JSON shape (object for struct/map, array for list). Walks the full schema tree including nested fields within list/map elements. Mirrors the existing unknownTypeValidator pattern.

Closes #1011

…ypes (apache#1011)

Validate that initial-default and write-default on struct/list/map fields
are null or the correct JSON type (object for struct/map, array for list).
@tanmayrauth tanmayrauth requested a review from zeroshade as a code owner May 5, 2026 22:08
@zeroshade zeroshade changed the title Feat(schema): reject complex type defaults #1011 feat(schema): reject complex type defaults #1011 May 6, 2026
Copy link
Copy Markdown
Contributor

@laskoviymishka laskoviymishka left a comment

Choose a reason for hiding this comment

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

LGTM

@laskoviymishka laskoviymishka merged commit ac1ead7 into apache:main May 6, 2026
14 checks passed
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.

feat(schema): reject non-single-value-parseable defaults on complex types

2 participants