danielgtaylor / danielgtaylor/python-betterproto
Support for AIP 203 annotations?
- Vorherrschende Sprache
- Python
- Sterne
- 1.8k
- Forks
- 234
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi there! Thanks for creating and maintaining this package -- I'm currently looking into integrating protobuf messages into one of the Python projects I work on, and this looks like a really nice interface.
As part of designing the messages I'm planning on using, I'd like to be able to use [AIP 203-style](https://google.aip.dev/203) annotations to signal that particular fields are required on the wire. I can see these annotations show up in other codegen backends (like Go and Java), but they don't seem to have any effect on betterproto's generation.
Full context: https://github.com/sigstore/protobuf-specs/pull/41
Is this something that's currently possible with `betterproto`? If not, is there interest in adding support for it? If so, it's something I could take a stab at 🙂
Thanks in advance!
Beitragsleitfaden
Rechercherichtung
Beginne mit dem Lesen der AIP 203-Spezifikation und des verknüpften protobuf-specs-Pull-Requests und verfolge anschließend betterproto's protobuf-Generierungspfad für Feldannotationen. Im Issue werden keine Dateien oder Tests genannt; als abgeschlossen sollte gelten, dass AIP 203-Annotationen während der Generierung erkannt werden und ihr vorgesehenes Verhalten für erforderliche Felder durch Verifikation abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100