Skip to content

Instantly share code, notes, and snippets.

@arn4v
Created October 29, 2022 12:12
Show Gist options
  • Save arn4v/6eab90816c47b40d99ca97603b0e7efe to your computer and use it in GitHub Desktop.
Save arn4v/6eab90816c47b40d99ca97603b0e7efe to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Generated schema for Root",
"type": "object",
"properties": {
"port": {
"type": "number"
},
"db": {
"type": "object",
"properties": {
"clickhouse": {
"type": "object",
"properties": {
"host": {
"type": "string"
},
"port": {
"type": "number"
},
"user": {
"type": "string"
},
"password": {
"type": "string"
},
"database": {
"type": "string"
},
"migration_table_name": {
"type": "string"
},
"events_table_name": {
"type": "string"
}
},
"required": [
"host",
"port",
"user",
"password",
"database",
"migration_table_name",
"events_table_name"
]
},
"postgres": {
"type": "object",
"properties": {
"host": {
"type": "string"
},
"port": {
"type": "number"
},
"user": {
"type": "string"
},
"password": {
"type": "string"
},
"database": {
"type": "string"
},
"migration_table_name": {
"type": "string"
},
"users_table_name": {
"type": "string"
}
},
"required": [
"host",
"port",
"user",
"password",
"database",
"migration_table_name",
"users_table_name"
]
}
},
"required": [
"clickhouse",
"postgres"
]
}
},
"required": [
"port",
"db"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment