{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opoint/json-schema/opoint-license-schema.json",
  "title": "License",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opoint-licenses-api-openapi.yml#/components/schemas/License",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "readOnly": true
    },
    "value": {
      "type": "integer",
      "readOnly": true
    },
    "label": {
      "type": "string",
      "readOnly": true
    },
    "description": {
      "type": "string",
      "readOnly": true
    },
    "num_users": {
      "type": "integer",
      "readOnly": true
    },
    "category": {
      "oneOf": [
        {
          "$ref": "#/$defs/LicenseCategory"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "category",
    "description",
    "label",
    "name",
    "num_users",
    "value"
  ],
  "$defs": {
    "LicenseCategory": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ]
    }
  }
}