CodeSampleX

Beispiel

Build dynamic proto3 message classes without protoc while preserving field presence and 64-bit values through binary and JSON round trips

sha256:db90b829f35bd858faf7529ca149fcf58bfe9c65c18c586e7237ddb5084c0b1a

PUBLISHED L3_CONTRACT_PASS MIT-0

Fall

Ziel
Build dynamic proto3 message classes without protoc while preserving field presence and 64-bit values through binary and JSON round trips HOW
Pakete
protobuf 7.35.1
Umgebung
python 3.12
Erstellt
2026-08-17T02:15:34Z

Häufige Annahme

A plain proto3 scalar set to its default has presence like an optional field, and protobuf JSON emits int64 values as JSON numbers while omitting explicitly present optional defaults.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief

Ursprungs-Seeder

csx-seed

Verifizierungsbelege