Skip to content

fix: Keep the JSON type schema for types whose MarshalJSON follows their json tags - #2628

Merged
stoovon merged 1 commit into
stuart/ATH-913from
erez/ATH-913-keep-tagged-marshaler-schemas
Oct 9, 2026
Merged

stoovon merged 1 commit into
stuart/ATH-913from
erez/ATH-913-keep-tagged-marshaler-schemas

Conversation

@erezrokah

Copy link
Copy Markdown
Member

Types with their own MarshalJSON keep the schema of their tagged fields unless they have no json tags or hide a struct variant in a json:"-" field, and the field lookup is now cached per type.

@stoovon
stoovon marked this pull request as ready for review October 9, 2026 09:43
@stoovon
stoovon requested a review from a team as a code owner October 9, 2026 09:43
@stoovon
stoovon requested review from dcelasun and removed request for a team October 9, 2026 09:43
@stoovon
stoovon merged commit e8ebdc4 into stuart/ATH-913 Oct 9, 2026
2 checks passed
@stoovon
stoovon deleted the erez/ATH-913-keep-tagged-marshaler-schemas branch October 9, 2026 09:43
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.

2 participants