Skip to content

Instantly share code, notes, and snippets.

@tailhook
Last active August 17, 2020 09:25
Show Gist options
  • Save tailhook/bb64fc0fa67a5981876d3646cfc326c7 to your computer and use it in GitHub Desktop.
Save tailhook/bb64fc0fa67a5981876d3646cfc326c7 to your computer and use it in GitHub Desktop.
Credentials schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://edgedb.com/schemas/credentials.json",
"title": "Credentials file for EdgeDB clients",
"description": "This data used for connecting to EdgeDB database, contains authentication data and connection data",
"type": "object",
"properties": {
"host": {
"description": "Host to connect to. If omitted, most implementations consider localhost by default, but can be overriden",
"type": "string"
},
"port": {
"description": "Port to connect to (default is 5656)",
"type": "integer",
"minumum": 1,
"maximum": 65535
},
"database": {
"description": "Default database to connect to",
"type": "string"
},
"user": {
"description": "User name to use for authentication",
"type": "string"
},
"password": {
"description": "Password to use for authentication",
"type": "string"
},
},
"required": [ "user" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment