Skip to content

Explore the complex schema

Wirelit uses a shipping domain to exercise the parts of Protobuf that a small hello-world example misses. Its own documentation build compiles these source files, runs Wirelit, and builds the generated MDX beside the guides you are reading.

The main sample imports shared types from common.proto and several Protobuf well-known types.

Schema featureGenerated reference
HTTP and JSON plus typed RPC callsGetShipment
Server streamingWatchShipment
Client streamingUploadEvents
Bidirectional streamingSyncEvents
Custom JSON field nameShipment.id
Explicit presenceGetShipmentRequest.include_events
Oneof destinationShipment.street_address
Nested messageShipment.Insurance
Nested enumInsurance.Coverage
Imported messagePostalAddress
Map of messagesShipment.carrier_quotes
Recursive referenceShipment.related
Timestamp, duration, Any, Struct, and FieldMaskShipment and GetShipmentRequest
DeprecationShipment.legacy_status

The fixture tests parse curated examples with their actual Protobuf schemas and execute the supported generated calls against a Connect server. Client and bidirectional streaming pages currently expose accurate contracts and protocol guidance; runnable snippets for those shapes are future work.

The build also checks links across authored and generated documentation. The GitHub Pages workflow generates its API reference using the same CLI that consumers install.