3. Definitions document
The definitions document is a helper: a published schema with one compiled subschema per ES type, which schema authors reference with $ref instead of writing estype and compiling.
DEFS_DOCUMENT MUST
The definitions document MUST be a JSON Schema 2020-12 document with $id https://lingodata.dev/estype/defs/0.1 and, in $defs, one subschema for each ES type of the table in section 2.1, named by the ES type and equal to the compilation of { "estype": T }.
DEFS_EQUIVALENT MUST
A subschema whose only keywords are a $ref to an entry of the definitions document and keywords of COMPILE_OUTSIDE_KEYWORDS MUST be treated as equivalent to the compiled subschema with that estype, including for conversion (section 4).
Source: lingodata/estype@0cbfb46 · spec/sections/03-definitions.md · estype 0.1.0 (draft)
LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.