Proto Schema
Not all schema features match between GPB (proto3) and ASN.1. Try different options, modify both the proto and the ASN.1 schema for the best results. Use asn1-playground to experiment with the ASN.1 schema.
Generate DEFAULT values for primitive types.
Generate context tags matching the input tags.
Generate extension markers ('...' in CHOICE, SEQUENCE), make fields OPTIONAL.
ASN.1 encoding instructions may produce a better match for the original proto.
SET may work better for JSON serialization, where object assumes no order of the fields.
ASN.1 Schema