{
	"$schema": "http://json-schema.org/draft-07/schema",
	"$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/userCreate.json",
	"type": "object",
	"title": "User Creation",
	"additionalProperties": false,
	"required": [
		"username",
		"language",
		"role"
	],
	"anyOf": [
		{
			"required": ["password"]
		},
		{
			"required": ["email"]
		}
	],
	"properties": {
		"baseUrl": {
			"$id": "#/properties/baseUrl",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/common.json#/definitions/baseUrl"
		},
		"username": {
			"$id": "#/properties/username",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/user.json#/definitions/username"
		},
		"email": {
			"$id": "#/properties/email",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/user.json#/definitions/email"
		},
		"password": {
			"$id": "#/properties/password",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/user.json#/definitions/password"
		},
		"language": {
			"$id": "#/properties/language",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/user.json#/definitions/language"
		},
		"role": {
			"$id": "#/properties/role",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/user.json#/definitions/role"
		}
	}
}
