Skip to content

Instantly share code, notes, and snippets.

@amirhadadi
Created April 30, 2023 07:39
Show Gist options
  • Save amirhadadi/88ca4f31f9f9d8327d0c06da5806c031 to your computer and use it in GitHub Desktop.
Save amirhadadi/88ca4f31f9f9d8327d0c06da5806c031 to your computer and use it in GitHub Desktop.
json schema
{
"allOf": [
{
"type": "object",
"properties": {
"cancelRetriesOnTimeout": {
"type": "boolean"
},
"connectionName": {
"type": "string"
},
"disableTempFolderRemoval": {
"type": "boolean"
},
"name": {
"allOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"const": "String"
}
},
"required": [
"type"
]
}
]
},
"primaryKeyConflictHandling": {
"$ref": "#/$defs/PrimaryKeyConflictHandling"
},
"sourceQuery": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/$defs/HiveQueryDTO"
},
{
"type": "object",
"properties": {
"type": {
"const": "HiveQueryDTO"
}
},
"required": [
"type"
]
}
]
},
{
"allOf": [
{
"$ref": "#/$defs/JdbcQueryDTO"
},
{
"type": "object",
"properties": {
"type": {
"const": "JdbcQueryDTO"
}
},
"required": [
"type"
]
}
]
},
{
"allOf": [
{
"$ref": "#/$defs/CassandraQueryDTO"
},
{
"type": "object",
"properties": {
"type": {
"const": "CassandraQueryDTO"
}
},
"required": [
"type"
]
}
]
}
]
},
"splitFilesNumLines": {
"type": "integer"
},
"stepTimeoutSec": {
"type": "integer"
},
"targetColumnNames": {
"type": "string"
},
"targetTableName": {
"type": "string"
}
}
},
{
"type": "object",
"properties": {
"type": {
"const": "SmartLoadStepDTO"
}
},
"required": [
"type"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment