Schemas
At it’s core, GOBL is a set of JSON Schema definitions that describe business documents. The base schema of GOBL is an Envelope. An envelope acts as a wrapper around a document (doc
property) with a special type called schema.Object that uses the embedded $schema
property to determine what type of GOBL payload is being used.
Alongside the doc
property inside an Envelope, you’ll find a head
of type head.Header and array of signatures (dsig.Signature) which ensure that the data is verifiable with any additional properties that help describe the payload.
You can find all the pre-built GOBL JSON Schema in the repository’s data directory