{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-service-account-create-xo-schema.json",
  "title": "ServiceAccountCreateXO",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-security-management-service-account-tokens-api-openapi.yml#/components/schemas/ServiceAccountCreateXO",
  "required": [
    "name",
    "roleId"
  ],
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 128,
      "minLength": 0,
      "pattern": "^[a-zA-Z0-9_-]+$",
      "type": "string"
    },
    "description": {
      "maxLength": 256,
      "minLength": 0,
      "type": "string"
    },
    "roleId": {
      "type": "string"
    },
    "expirationDays": {
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    }
  }
}