{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snow-software/json-schema/snow-software-license-assignment-details-schema.json",
  "title": "LicenseAssignmentDetails",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snow-software-assignments-api-openapi.yml#/components/schemas/LicenseAssignmentDetails",
  "allOf": [
    {
      "$ref": "#/$defs/HateoasResource"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "licenseId": {
          "type": "string",
          "description": "The unique ID of the license.",
          "format": "guid"
        },
        "hasOrganizationAssignment": {
          "type": "boolean",
          "description": "```true``` if has organization assignment; otherwise, ```false```."
        },
        "hasComputerAssignment": {
          "type": "boolean",
          "description": "```true``` if has computer assignment; otherwise, ```false```."
        },
        "hasUserAssignment": {
          "type": "boolean",
          "description": "```true``` if has user assignment; otherwise, ```false```."
        },
        "hasSiteAssignment": {
          "type": "boolean",
          "description": "```true``` if has site assignment; otherwise, ```false```."
        }
      }
    }
  ],
  "$defs": {
    "HateoasResource": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "_links"
      ],
      "properties": {
        "_links": {
          "type": "array",
          "description": "A collection of links to related resources.",
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "Link": {
      "type": "object",
      "description": "Represents a hypermedia link referenced from a IResource, according to HATEOAS.",
      "additionalProperties": false,
      "properties": {
        "href": {
          "type": [
            "string",
            "null"
          ],
          "description": "The associated relative URL."
        },
        "rel": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies the relationship between the current document and the linked document/resource."
        },
        "method": {
          "type": [
            "string",
            "null"
          ],
          "description": "The method to access related resources."
        }
      }
    }
  }
}