{
	"$schema": "http://json-schema.org/draft-07/schema",
	"$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/totpAdd.json",
	"type": "object",
	"title": "TOTP token add",
	"additionalProperties": false,
	"required": [
		"name",
		"secret",
		"code",
		"password"
	],
	"properties": {
		"name": {
			"$id": "#/properties/name",
			"title": "TOTP token name",
			"type": "string",
			"minLength": 1,
			"maxLength": 255,
			"example": "Mobile authenticator"
		},
		"secret": {
			"$id": "#/properties/secret",
			"title": "TOTP secret",
			"type": "string",
			"minLength": 1,
			"maxLength": 32,
			"example": "JBSWY3DPEHPK3PXP"
		},
		"code": {
			"$id": "#/properties/code",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/user.json#/definitions/totpCode"
		},
		"password": {
			"$id": "#/properties/password",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/user.json#/definitions/passwordOld",
			"title": "Password"
		}
	}
}
