{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-api-access-check-xo-schema.json",
  "title": "ApiAccessCheckXo",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-security-management-api-access-api-openapi.yml#/components/schemas/ApiAccessCheckXo",
  "required": [
    "endpoint",
    "method"
  ],
  "type": "object",
  "properties": {
    "userId": {
      "pattern": "^[a-zA-Z0-9._-]{1,200}$",
      "type": "string",
      "description": "The user ID to check access for. If omitted, checks access for the current user."
    },
    "roleId": {
      "pattern": "^[a-zA-Z0-9._-]{1,200}$",
      "type": "string",
      "description": "The role ID to check access for. Mutually exclusive with userId."
    },
    "endpoint": {
      "minLength": 1,
      "type": "string",
      "description": "The API endpoint to check access for."
    },
    "method": {
      "minLength": 1,
      "type": "string",
      "description": "The HTTP method for the endpoint."
    }
  }
}