From 42d8e49d3547655382345130617c8282079122a8 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 11 Aug 2024 13:41:28 +0200 Subject: [PATCH] Add GCS to schema (need to add to REAME.md) as well. --- datacontract.schema.json | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/datacontract.schema.json b/datacontract.schema.json index d74f637..844afc4 100644 --- a/datacontract.schema.json +++ b/datacontract.schema.json @@ -169,6 +169,50 @@ "location" ] }, + { + "type": "object", + "title": "GcsServer", + "properties": { + "type": { + "type": "string", + "enum": [ + "gcs" + ], + "description": "The type of the data product technology that implements the data contract." + }, + "location": { + "type": "string", + "format": "uri", + "description": "The GS/GCS url to the data.", + "examples": [ + "gs://example-storage/data/*/*.json" + ] + }, + "format": { + "type": "string", + "enum": [ + "parquet", + "delta", + "json", + "csv" + ], + "description": "File format." + }, + "delimiter": { + "type": "string", + "enum": [ + "new_line", + "array" + ], + "description": "Only for format = json. How multiple json documents are delimited within one file" + } + }, + "additionalProperties": true, + "required": [ + "type", + "location" + ] + }, { "type": "object", "title": "SftpServer",