Skip to content

MINOR: Fix JSON generation of nested structs with non-matching type/name#9277

Merged
hachikuji merged 2 commits intoapache:trunkfrom
hachikuji:struct-registry-fix
Sep 10, 2020
Merged

MINOR: Fix JSON generation of nested structs with non-matching type/name#9277
hachikuji merged 2 commits intoapache:trunkfrom
hachikuji:struct-registry-fix

Conversation

@hachikuji
Copy link
Copy Markdown
Contributor

The schema specification allows a struct type name to differ from the field name. This works with the generated Message classes, but not with the generated JSON converter. The problem seems to be that the type name gets replaced with the field name when the struct is registered.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@cmccabe
Copy link
Copy Markdown
Contributor

cmccabe commented Sep 10, 2020

LGTM

@hachikuji
Copy link
Copy Markdown
Contributor Author

One flaky failure which is fixed by #9091. Will merge to trunk.

@hachikuji hachikuji merged commit e7f1cff into apache:trunk Sep 10, 2020
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