{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/netcorecloud/json-schema/netcorecloud-user-create-schema.json",
  "title": "UserCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/netcorecloud-users-api-openapi.yml#/components/schemas/UserCreate",
  "type": "object",
  "required": [
    "username",
    "email",
    "password",
    "role"
  ],
  "properties": {
    "username": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "password": {
      "type": "string",
      "format": "password"
    },
    "role": {
      "type": "string",
      "enum": [
        "admin",
        "viewer"
      ]
    },
    "allowed_subclient_ids": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Sub-client IDs this user may access."
    }
  }
}