Documentation
¶
Overview ¶
Package r3schema serializes an r3.Schema to a stable, versioned, public-only JSON shape for introspection.
Category: Serialization dialect.
A consumer can expose the result (e.g. at a "/-/schema" endpoint) so a frontend builds column pickers and a dynamic "+ filter" UI from the declared attributes.
Only the public projection is emitted: non-Queryable attributes are omitted, so the system/worker bypass is never advertised. The reserved "computed" flag ships from day one to keep the contract forward-compatible.
Index ¶
Constants ¶
const Version = 1
Version is the schema-JSON contract version. Bump it on a breaking change to the emitted shape so consumers can detect and adapt.
Variables ¶
This section is empty.
Functions ¶
func MarshalSchema ¶
MarshalSchema serializes s to the public JSON shape: a version plus the ordered Queryable attributes, each with capability booleans, allowed filter operators (canonical names), enum values, relation target, and the reserved computed flag.
Types ¶
This section is empty.