{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://openlineage.io/spec/facets/1-2-0/SchemaDatasetFacet.json", "$defs": { "SchemaDatasetFacetFields": { "type": "object", "properties": { "name": { "description": "The name of the field.", "type": "string", "example": "column1" }, "type": { "description": "The type of the field.", "type": "string", "example": "VARCHAR|INT|..." }, "description": { "description": "The description of the field.", "type": "string" }, "ordinal_position": { "description": "The ordinal position of the field in the schema (1-indexed).", "type": "integer", "example": 1 }, "fields": { "description": "Nested struct fields.", "type": "array", "items": { "$ref": "#/$defs/SchemaDatasetFacetFields" } } }, "required": ["name"] }, "SchemaDatasetFacet": { "allOf": [ { "$ref": "https://openlineage.io/spec/2-0-2/OpenLineage.json#/$defs/DatasetFacet" }, { "type": "object", "properties": { "fields": { "description": "The fields of the data source.", "type": "array", "items": { "$ref": "#/$defs/SchemaDatasetFacetFields" } } } } ], "type": "object" } }, "type": "object", "properties": { "schema": { "$ref": "#/$defs/SchemaDatasetFacet" } } }