{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "ax_auth_service_enable_command",
    "description": "AxAuth service enable command schema",
    "additionalProperties": false,
    "required": [
        "tenant_id",
        "environment_id",
        "redirect_urls"
    ],
    "properties": {
        "tenant_id": {
            "type": "string",
            "minLength": 32,
            "maxLength": 36,
            "format": "uuid",
            "description": "A UUID."
        },
        "environment_id": {
            "type": "string",
            "minLength": 32,
            "maxLength": 36,
            "format": "uuid",
            "description": "A UUID."
        },
        "redirect_urls": {
            "type": "array",
            "description": "Redirect URLs",
            "additionalItems": false,
            "items": {
                "type": "string"
            }
        },
        "config": {
            "type": "object",
            "title": "ax_auth_service_config",
            "description": "AxAuth Service configuration",
            "additionalProperties": false,
            "properties": {
                "users": {
                    "type": "array",
                    "description": "AxAuth users",
                    "additionalItems": false,
                    "items": {
                        "type": "object",
                        "title": "ax_auth_user",
                        "description": "AxAuth User",
                        "additionalProperties": false,
                        "required": [
                            "email",
                            "first_name",
                            "last_name"
                        ],
                        "properties": {
                            "first_name": {
                                "type": "string",
                                "description": "First name of the AxAuth user"
                            },
                            "last_name": {
                                "type": "string",
                                "description": "Last name of the AxAuth user"
                            },
                            "email": {
                                "type": "string",
                                "description": "Email of the AxAuth user"
                            },
                            "password": {
                                "type": "string",
                                "description": "password"
                            }
                        }
                    }
                }
            }
        }
    }
}
