Skip to content

Commit 4f9fa1c

Browse files
committed
Update schema store
1 parent 779a3eb commit 4f9fa1c

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"$schema":"http://json-schema.org/draft-07/schema#","title":"Comet Data Pipeline","definitions":{"PrimitiveType":{"type":"string","oneOf":[{"const":"string"},{"const":"long"},{"const":"int"},{"const":"short"},{"const":"double"},{"const":"boolean"},{"const":"byte"},{"const":"date"},{"const":"timestamp"},{"const":"decimal"},{"const":"struct"}]},"IndexMapping":{"type":"string","oneOf":[{"const":"text"},{"const":"keyword"},{"const":"long"},{"const":"integer"},{"const":"short"},{"const":"byte"},{"const":"double"},{"const":"float"},{"const":"half_float"},{"const":"scaled_float"},{"const":"date"},{"const":"boolean"},{"const":"binary"},{"const":"integer_rang"},{"const":"float_range"},{"const":"long_range"},{"const":"double_range"},{"const":"date_range"},{"const":"geo_point"},{"const":"geo_shape"},{"const":"ip"},{"const":"completion"},{"const":"token_count"},{"const":"object"},{"const":"array"}]},"Engine":{"type":"string","oneOf":[{"const":"BQ"},{"const":"SPARK"}]},"WriteMode":{"type":"string","oneOf":[{"const":"OVERWRITE"},{"const":"APPEND"},{"const":"ERROR_IF_EXISTS"},{"const":"IGNORE"}]},"UserType":{"type":"string","oneOf":[{"const":"SA"},{"const":"USER"},{"const":"GROUP"}]},"Trim":{"type":"string","oneOf":[{"const":"LEFT"},{"const":"RIGHT"},{"const":"BOTH"},{"const":"NONE"}]},"SinkType":{"type":"string","oneOf":[{"const":"NONE"},{"const":"JBDC"},{"const":"BQ"},{"const":"ES"},{"const":"FS"},{"const":"KAFKA"}]},"Mode":{"type":"string","oneOf":[{"const":"FILE"},{"const":"STREAM"},{"const":"FILE_AND_STREAM"}]},"Type":{"type":"object","properties":{"name":{"type":"string"},"primitiveType":{"$ref":"#/definitions/PrimitiveType"},"pattern":{"type":"string"},"zone":{"type":"string"},"sample":{"type":"string"},"comment":{"type":"string"},"indexMapping":{"type":"string"}},"required":["name","pattern","primitiveType"]},"Partition":{"type":"object","properties":{"sampling":{"type":"number"},"attributes":{"type":"array","items":{"type":"string"}}},"required":[]},"Position":{"type":"object","properties":{"first":{"type":"number"},"last":{"type":"number"}},"required":["first","last"]},"RowLevelSecurity":{"type":"object","properties":{"name":{"type":"string"},"predicate":{"type":"string"},"grants":{"type":"array","items":{"type":"string"}}}},"MergeOptions":{"type":"object","properties":{"key":{"type":"array","items":{"type":"string"}},"delete":{"type":"string"},"timestamp":{"type":"string"},"queryFilter":{"type":"string"}},"required":["key"]},"Format":{"type":"string","oneOf":[{"const":"DSV"},{"const":"POSITION"},{"const":"JSON"},{"const":"ARRAY_JSON"},{"const":"SIMPLE_JSON"},{"const":"XML"}]},"MapString":{"type":"object","additionalProperties":{"type":"string"}},"Sink":{"type":"object","properties":{"type":{"$ref":"#/definitions/SinkType"},"name":{"type":"string"},"id":{"type":"string"},"timestamp":{"type":"string"},"location":{"type":"string"},"clustering":{"type":"string"},"days":{"type":"number"},"requirePartitionFilter":{"type":"boolean"},"connection":{"type":"string"},"partitions":{"type":"number"},"batchSize":{"type":"number"}},"required":["type"]},"Metadata":{"type":"object","properties":{"partition":{"$ref":"#/definitions/Partition"},"mode":{"$ref":"#/definitions/Mode"},"format":{"$ref":"#/definitions/Format"},"encoding":{"type":"string"},"multiline":{"type":"boolean"},"array":{"type":"boolean"},"withHeader":{"type":"boolean"},"separator":{"type":"string"},"quote":{"type":"string"},"escape":{"type":"string"},"write":{"$ref":"#/definitions/WriteMode"},"sink":{"$ref":"#/definitions/Sink"},"clustering":{"type":"array","items":{"type":"string"}},"ignore":{"type":"string"},"xml":{"$ref":"#/definitions/MapString"}}},"Schema":{"type":"object","properties":{"name":{"type":"string"},"pattern":{"type":"string"},"primaryKey":{"type":"array","items":{"type":"string"}},"attributes":{"type":"array","items":{"$ref":"#/definitions/Attribute"}},"metadata":{"$ref":"#/definitions/Metadata"},"merge":{"$ref":"#/definitions/MergeOptions"},"comment":{"type":"string"},"presql":{"type":"array","items":{"type":"string"}},"postsql":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"rls":{"type":"array","items":{"$ref":"#/definitions/RowLevelSecurity"}},"assertions":{"$ref":"#/definitions/MapString"}}},"Attribute":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"foreignKey":{"type":"string"},"array":{"type":"boolean"},"required":{"type":"boolean"},"privacy":{"type":"string"},"comment":{"type":"string"},"rename":{"type":"string"},"metricType":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/Attribute"}},"position":{"$ref":"#/definitions/Position"},"default":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"trim":{"$ref":"#/definitions/Trim"},"script":{"type":"string"}},"required":["name","type"]},"AutoTaskDesc":{"type":"object","properties":{"sql":{"type":"string"},"engine":{"$ref":"#/definitions/Engine"},"domain":{"type":"string"},"dataset":{"type":"string"},"write":{"$ref":"#/definitions/WriteMode"},"area":{"type":"string"},"partition":{"type":"array","items":{"type":"string"}},"presql":{"type":"array","items":{"type":"string"}},"postsql":{"type":"array","items":{"type":"string"}},"sink":{"$ref":"#/definitions/Sink"},"rls":{"type":"array","items":{"$ref":"#/definitions/RowLevelSecurity"}},"assertions":{"$ref":"#/definitions/MapString"}},"required":["domain","dataset","write"]},"Domain":{"type":"object","properties":{"name":{"type":"string"},"directory":{"type":"string"},"metadata":{"$ref":"#/definitions/Metadata"},"schemaRefs":{"type":"array","items":{"type":"string"}},"schemas":{"type":"array","items":{"$ref":"#/definitions/Schema"}},"comment":{"type":"string"},"extensions":{"type":"array","items":{"type":"string"}},"ack":{"type":"string"}},"anyOf":[{"required":["name","directory","schemas"]},{"required":["name","directory","schemaRefs"]}]},"AutoJobDesc":{"type":"object","properties":{"name":{"type":"string"},"area":{"type":"string"},"format":{"type":"string"},"coalesce":{"type":"boolean"},"tasks":{"type":"array","items":{"$ref":"#/definitions/AutoTaskDesc"}},"udf":{"type":"string"},"views":{"$ref":"#/definitions/MapString"},"engine":{"$ref":"#/definitions/Engine"}},"required":["name","tasks"]}},"type":"object","properties":{"types":{"type":"array","items":{"$ref":"#/definitions/Type"}},"env":{"$ref":"#/definitions/MapString"},"transform":{"$ref":"#/definitions/AutoJobDesc"},"load":{"$ref":"#/definitions/Domain"},"assertions":{"$ref":"#/definitions/MapString"},"views":{"$ref":"#/definitions/MapString"},"schemas":{"type":"array","items":{"$ref":"#/definitions/Schema"}}},"oneOf":[{"required":["load"]},{"required":["views"]},{"required":["assertions"]},{"required":["env"]},{"required":["types"]},{"required":["transform"]},{"required":["schemas"]}]}
1+
{"$schema":"http://json-schema.org/draft-07/schema#","title":"Comet Data Pipeline","definitions":{"PrimitiveType":{"type":"string","oneOf":[{"const":"string"},{"const":"long"},{"const":"int"},{"const":"short"},{"const":"double"},{"const":"boolean"},{"const":"byte"},{"const":"date"},{"const":"timestamp"},{"const":"decimal"},{"const":"struct"}]},"IndexMapping":{"type":"string","oneOf":[{"const":"text"},{"const":"keyword"},{"const":"long"},{"const":"integer"},{"const":"short"},{"const":"byte"},{"const":"double"},{"const":"float"},{"const":"half_float"},{"const":"scaled_float"},{"const":"date"},{"const":"boolean"},{"const":"binary"},{"const":"integer_rang"},{"const":"float_range"},{"const":"long_range"},{"const":"double_range"},{"const":"date_range"},{"const":"geo_point"},{"const":"geo_shape"},{"const":"ip"},{"const":"completion"},{"const":"token_count"},{"const":"object"},{"const":"array"}]},"Engine":{"type":"string","oneOf":[{"const":"BQ"},{"const":"SPARK"}]},"WriteMode":{"type":"string","oneOf":[{"const":"OVERWRITE"},{"const":"APPEND"},{"const":"ERROR_IF_EXISTS"},{"const":"IGNORE"}]},"UserType":{"type":"string","oneOf":[{"const":"SA"},{"const":"USER"},{"const":"GROUP"}]},"Trim":{"type":"string","oneOf":[{"const":"LEFT"},{"const":"RIGHT"},{"const":"BOTH"},{"const":"NONE"}]},"SinkType":{"type":"string","oneOf":[{"const":"NONE"},{"const":"JBDC"},{"const":"BQ"},{"const":"ES"},{"const":"FS"},{"const":"KAFKA"}]},"Mode":{"type":"string","oneOf":[{"const":"FILE"},{"const":"STREAM"},{"const":"FILE_AND_STREAM"}]},"TableType":{"type":"string","oneOf":[{"const":"TABLE"},{"const":"VIEW"},{"const":"SYSTEM TABLE"},{"const":"GLOBAL TEMPORARY"},{"const":"LOCAL TEMPORARY"},{"const":"ALIAS"},{"const":"SYNONYM"}]},"Type":{"type":"object","properties":{"name":{"type":"string"},"primitiveType":{"$ref":"#/definitions/PrimitiveType"},"pattern":{"type":"string"},"zone":{"type":"string"},"sample":{"type":"string"},"comment":{"type":"string"},"indexMapping":{"type":"string"},"ddlMapping":{"$ref":"#/definitions/MapString"}},"required":["name","pattern","primitiveType"]},"Partition":{"type":"object","properties":{"sampling":{"type":"number"},"attributes":{"type":"array","items":{"type":"string"}}},"required":[]},"Position":{"type":"object","properties":{"first":{"type":"number"},"last":{"type":"number"}},"required":["first","last"]},"RowLevelSecurity":{"type":"object","properties":{"name":{"type":"string"},"predicate":{"type":"string"},"grants":{"type":"array","items":{"type":"string"}}}},"AccessControlEntry":{"type":"object","properties":{"role":{"type":"string"},"grants":{"type":"array","items":{"type":"string"}}}},"MergeOptions":{"type":"object","properties":{"key":{"type":"array","items":{"type":"string"}},"delete":{"type":"string"},"timestamp":{"type":"string"},"queryFilter":{"type":"string"}},"required":["key"]},"Format":{"type":"string","oneOf":[{"const":"DSV"},{"const":"POSITION"},{"const":"JSON"},{"const":"ARRAY_JSON"},{"const":"SIMPLE_JSON"},{"const":"XML"}]},"MapString":{"type":"object","additionalProperties":{"type":"string"}},"MapArrayOfString":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"Sink":{"type":"object","properties":{"type":{"$ref":"#/definitions/SinkType"},"name":{"type":"string"},"id":{"type":"string"},"timestamp":{"type":"string"},"location":{"type":"string"},"clustering":{"type":"string"},"days":{"type":"number"},"requirePartitionFilter":{"type":"boolean"},"connection":{"type":"string"},"partitions":{"type":"number"},"batchSize":{"type":"number"}},"required":["type"]},"Metadata":{"type":"object","properties":{"mode":{"$ref":"#/definitions/Mode"},"format":{"$ref":"#/definitions/Format"},"encoding":{"type":"string"},"multiline":{"type":"boolean"},"array":{"type":"boolean"},"withHeader":{"type":"boolean"},"separator":{"type":"string"},"quote":{"type":"string"},"escape":{"type":"string"},"write":{"$ref":"#/definitions/WriteMode"},"partition":{"$ref":"#/definitions/Partition"},"sink":{"$ref":"#/definitions/Sink"},"ignore":{"type":"string"},"clustering":{"type":"array","items":{"type":"string"}},"xml":{"$ref":"#/definitions/MapString"},"directory":{"type":"string"},"extensions":{"type":"array","items":{"type":"string"}},"ack":{"type":"string"}}},"Schema":{"type":"object","properties":{"name":{"type":"string"},"pattern":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/Attribute"}},"metadata":{"$ref":"#/definitions/Metadata"},"merge":{"$ref":"#/definitions/MergeOptions"},"comment":{"type":"string"},"presql":{"type":"array","items":{"type":"string"}},"postsql":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"rls":{"type":"array","items":{"$ref":"#/definitions/RowLevelSecurity"}},"assertions":{"$ref":"#/definitions/MapString"},"primaryKey":{"type":"array","items":{"type":"string"}},"acl":{"type":"array","items":{"$ref":"#/definitions/AccessControlEntry"}}}},"Attribute":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"array":{"type":"boolean"},"required":{"type":"boolean"},"privacy":{"type":"string"},"comment":{"type":"string"},"rename":{"type":"string"},"metricType":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/Attribute"}},"position":{"$ref":"#/definitions/Position"},"default":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"trim":{"$ref":"#/definitions/Trim"},"script":{"type":"string"},"foreignKey":{"type":"string"},"ignore":{"type":"boolean"},"accessPolicy":{"type":"string"}},"required":["name","type"]},"AutoTaskDesc":{"type":"object","properties":{"sql":{"type":"string"},"domain":{"type":"string"},"dataset":{"type":"string"},"write":{"$ref":"#/definitions/WriteMode"},"partition":{"type":"array","items":{"type":"string"}},"presql":{"type":"array","items":{"type":"string"}},"postsql":{"type":"array","items":{"type":"string"}},"area":{"type":"string"},"sink":{"$ref":"#/definitions/Sink"},"rls":{"type":"array","items":{"$ref":"#/definitions/RowLevelSecurity"}},"assertions":{"$ref":"#/definitions/MapString"},"engine":{"$ref":"#/definitions/Engine"}},"required":["domain","dataset","write"]},"Domain":{"type":"object","properties":{"name":{"type":"string"},"metadata":{"$ref":"#/definitions/Metadata"},"schemaRefs":{"type":"array","items":{"type":"string"}},"schemas":{"type":"array","items":{"$ref":"#/definitions/Schema"}},"comment":{"type":"string"},"directory":{"type":"string"},"extensions":{"type":"array","items":{"type":"string"}},"ack":{"type":"string"}},"anyOf":[{"required":["name","schemas"]},{"required":["name","schemaRefs"]}]},"AutoJobDesc":{"type":"object","properties":{"name":{"type":"string"},"tasks":{"type":"array","items":{"$ref":"#/definitions/AutoTaskDesc"}},"area":{"type":"string"},"format":{"type":"string"},"coalesce":{"type":"boolean"},"udf":{"type":"string"},"views":{"$ref":"#/definitions/MapString"},"engine":{"$ref":"#/definitions/Engine"}},"required":["name","tasks"]},"JDBCTable":{"type":"object","properties":{"name":{"type":"string"},"columns":{"type":"array","items":{"type":"string"}}},"required":["name"]},"JDBCSchema":{"type":"object","properties":{"connection":{"type":"string"},"catalog":{"type":"string"},"schema":{"type":"string"},"template":{"type":"string"},"tables":{"type":"array","items":{"$ref":"#/definitions/JDBCTable"}},"tableTypes":{"type":"array","items":{"type":"string"}}},"required":["connection","tables"]},"JDBCSchemas":{"type":"object","properties":{"jdbcSchemas":{"type":"array","items":{"$ref":"#/definitions/JDBCSchema"}}},"required":["name"]}},"type":"object","properties":{"types":{"type":"array","items":{"$ref":"#/definitions/Type"}},"extract":{"$ref":"#/definitions/JDBCSchemas"},"load":{"$ref":"#/definitions/Domain"},"transform":{"$ref":"#/definitions/AutoJobDesc"},"env":{"$ref":"#/definitions/MapString"},"assertions":{"$ref":"#/definitions/MapString"},"views":{"$ref":"#/definitions/MapString"},"schemas":{"type":"array","items":{"$ref":"#/definitions/Schema"}}},"oneOf":[{"required":["extract"]},{"required":["load"]},{"required":["transform"]},{"required":["views"]},{"required":["assertions"]},{"required":["env"]},{"required":["types"]},{"required":["schemas"]}]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"$schema":"http://json-schema.org/draft-07/schema","title":"JSON schema for React Cosmos configs","type":"object","additionalProperties":false,"properties":{"$schema":{"type":"string"},"rootDir":{"type":"string","minLength":1},"exportPath":{"type":"string","minLength":1},"disablePlugins":{"type":"boolean"},"staticPath":{"type":"string","minLength":1},"publicUrl":{"type":"string"},"fixturesDir":{"type":"string","minLength":1},"fixtureFileSuffix":{"type":"string","minLength":1},"watchDirs":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"userDepsFilePath":{"type":"string","minLength":1},"hostname":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"type":"number"},"https":{"type":"boolean"},"httpsOptions":{"type":"object","additionalProperties":false,"properties":{"certPath":{"type":"string"},"keyPath":{"type":"string"}}},"httpProxy":{"type":"object","patternProperties":{".*":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":true,"required":["target"],"properties":{"target":{"type":"string"},"secure":{"type":"boolean"},"pathRewrite":{"type":"object","patternProperties":{".*":{"type":"string"}}},"logLevel":{"type":"string","enum":["error","debug","info","warn","silent"]}}}]}}},"globalImports":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"dom":{"type":"object","properties":{"containerQuerySelector":{"type":["string","null"],"minLength":1}}},"webpack":{"type":"object","additionalProperties":false,"properties":{"configPath":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"overridePath":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"includeHashInOutputFilename":{"type":"boolean"},"hotReload":{"type":"boolean"}}},"ui":{"type":"object","additionalProperties":true,"properties":{"responsivePreview":{"type":"object","additionalProperties":false,"properties":{"devices":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["label","width","height"],"properties":{"label":{"type":"string","minLength":1},"width":{"type":"number","minimum":1},"height":{"type":"number","minimum":1}}}}}}}}}}
1+
{"$schema":"http://json-schema.org/draft-07/schema","title":"JSON schema for React Cosmos configs","type":"object","additionalProperties":false,"properties":{"$schema":{"type":"string"},"rootDir":{"type":"string","minLength":1},"exportPath":{"type":"string","minLength":1},"disablePlugins":{"type":"boolean"},"staticPath":{"type":"string","minLength":1},"publicUrl":{"type":"string"},"fixturesDir":{"type":"string","minLength":1},"fixtureFileSuffix":{"type":"string","minLength":1},"watchDirs":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"userDepsFilePath":{"type":"string","minLength":1},"hostname":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"type":"number"},"https":{"type":"boolean"},"httpsOptions":{"type":"object","additionalProperties":false,"properties":{"certPath":{"type":"string"},"keyPath":{"type":"string"}}},"httpProxy":{"type":"object","additionalProperties":true,"patternProperties":{".*":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":true,"required":["target"],"properties":{"target":{"type":"string"},"secure":{"type":"boolean"},"pathRewrite":{"type":"object","patternProperties":{".*":{"type":"string"}}},"logLevel":{"type":"string","enum":["error","debug","info","warn","silent"]}}}]}}},"globalImports":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"experimentalRendererUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"dom":{"type":"object","properties":{"containerQuerySelector":{"type":["string","null"],"minLength":1}}},"webpack":{"type":"object","additionalProperties":false,"properties":{"configPath":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"overridePath":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"includeHashInOutputFilename":{"type":"boolean"},"hotReload":{"type":"boolean"},"reloadOnFail":{"type":"boolean"}}},"ui":{"type":"object","additionalProperties":true,"properties":{"responsivePreview":{"type":"object","additionalProperties":false,"properties":{"devices":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["label","width","height"],"properties":{"label":{"type":"string","minLength":1},"width":{"type":"number","minimum":1},"height":{"type":"number","minimum":1}}}}}}}}}}

0 commit comments

Comments
 (0)