{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cesnet/json-schema/cesnet-attribute-schema.json",
  "title": "Attribute",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cesnet-attributesmanager-api-openapi.yml#/components/schemas/Attribute",
  "allOf": [
    {
      "$ref": "#/$defs/AttributeDefinition"
    }
  ],
  "properties": {
    "valueCreatedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "valueCreatedBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "valueModifiedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "valueModifiedBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "value": {}
  },
  "$defs": {
    "AttributeDefinition": {
      "allOf": [
        {
          "$ref": "#/$defs/Auditable"
        }
      ],
      "properties": {
        "friendlyName": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "writable": {
          "type": "boolean"
        },
        "unique": {
          "type": "boolean"
        },
        "friendlyNameParameter": {
          "type": "string",
          "readOnly": true
        },
        "baseFriendlyName": {
          "type": "string",
          "readOnly": true
        },
        "entity": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "Auditable": {
      "description": "represents audit information",
      "allOf": [
        {
          "$ref": "#/$defs/PerunBean"
        }
      ],
      "properties": {
        "createdAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "modifiedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "modifiedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdByUid": {
          "type": [
            "integer",
            "null"
          ]
        },
        "modifiedByUid": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "PerunBean": {
      "description": "identifiable entity in Perun, common ancestor of all entity classes",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "beanName": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "beanName"
      ]
    }
  }
}