From 7de2561f6d1c8ab9e3d6654c886a64b83063ad2f Mon Sep 17 00:00:00 2001 From: Dmitry Kisler Date: Wed, 8 Apr 2020 22:38:09 +0200 Subject: [PATCH] adds test data --- data/gbqschema.json | 38 ++++++++++++++++++++++++++++++++++++++ data/jsonschema.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 data/gbqschema.json create mode 100644 data/jsonschema.json diff --git a/data/gbqschema.json b/data/gbqschema.json new file mode 100644 index 0000000..08993af --- /dev/null +++ b/data/gbqschema.json @@ -0,0 +1,38 @@ +[{ + "description": "Att 1", + "name": "att_01", + "type": "INTEGER", + "mode": "NULLABLE" + }, + { + "description": "Att 2", + "name": "att_02", + "type": "NUMERIC", + "mode": "REQUIRED" + }, + { + "name": "att_03", + "type": "STRING", + "mode": "NULLABLE" + }, + { + "name": "att_04", + "type": "BOOLEAN", + "mode": "NULLABLE" + }, + { + "name": "att_05", + "type": "DATE", + "mode": "NULLABLE" + }, + { + "name": "att_06", + "type": "DATETIME", + "mode": "NULLABLE" + }, + { + "name": "att_07", + "type": "TIMESTAMP", + "mode": "NULLABLE" + } +] \ No newline at end of file diff --git a/data/jsonschema.json b/data/jsonschema.json new file mode 100644 index 0000000..ca9f003 --- /dev/null +++ b/data/jsonschema.json @@ -0,0 +1,43 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "array", + "items": { + "$ref": "#/definitions/element" + }, + "definitions": { + "element": { + "type": "object", + "properties": { + "att_01": { + "type": "integer", + "description": "Att 1" + }, + "att_02": { + "type": "number", + "description": "Att 2" + }, + "att_03": { + "type": "string" + }, + "att_04": { + "type": "boolean" + }, + "att_05": { + "type": "string", + "format": "date" + }, + "att_06": { + "type": "string", + "format": "date-time" + }, + "att_07": { + "type": "string", + "format": "time" + } + }, + "required": [ + "att_02" + ] + } + } +} \ No newline at end of file