{
	"$schema": "http://json-schema.org/draft-07/schema#",
	"title": "登录凭据 / Login credentials",
	"type": "object",
	"additionalProperties": {
		"title": "站点名称 / Site name",
		"type": "object",
		"oneOf": [
			{
				"type": "object",
				"properties": {
					"apiUrl": {
						"type": "string",
						"minLength": 1
					},
					"OAuthCredentials": {
						"type": "object",
						"properties": {
							"accessToken": {
								"type": "string",
								"minLength": 1
							},
							"accessSecret": {
								"type": "string",
								"minLength": 1
							},
							"consumerToken": {
								"type": "string",
								"minLength": 1
							},
							"consumerSecret": {
								"type": "string",
								"minLength": 1
							}
						},
						"required": ["accessToken", "accessSecret", "consumerToken", "consumerSecret"]
					}
				},
				"additionalProperties": false,
				"required": ["apiUrl", "OAuthCredentials"]
			},
			{
				"type": "object",
				"properties": {
					"apiUrl": {
						"type": "string",
						"minLength": 1
					},
					"OAuth2AccessToken": {
						"type": "string",
						"minLength": 1
					}
				},
				"additionalProperties": false,
				"required": ["apiUrl", "OAuth2AccessToken"]
			},
			{
				"type": "object",
				"properties": {
					"apiUrl": {
						"type": "string",
						"minLength": 1
					},
					"username": {
						"type": "string",
						"minLength": 1
					},
					"password": {
						"type": "string",
						"minLength": 1
					}
				},
				"additionalProperties": false,
				"required": ["apiUrl", "username", "password"]
			}
		]
	}
}
