Skip to content

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

Open
tanmayrauth wants to merge 2 commits intoapache:mainfrom
tanmayrauth:feat/1011-reject-complex-type-defaults
Open

Feat(schema): reject complex type defaults #1011 #1017
tanmayrauth wants to merge 2 commits intoapache: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
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

1 participant