Skip to content

Is there a way to ignore option map_entry = true; for schemas downloaded from Confluent Schema Registry? #3637

Closed Answered by doriable
guga4ka asked this question in Q&A
Discussion options

You must be logged in to vote

The map_entry option is a restricted option, so the build is failing because it's a compiler restriction (it would fail with protoc also). There appears to be a fix in the CSR for schemas to emit a proper map type, even when normalization is not enabled: confluentinc/schema-registry#3444

So in this particular case, I would suggest not depending on any schemas that are being pulled from a version of the CSR that emits the map entry messages with the map_entry option set and checking your CSR versions and configurations.

To address the broader use-case of excluding options when working with schemas, we are currently working on a feature to configure excluding options when generating code with

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by guga4ka
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants