{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-permission-response-dto-schema.json",
  "title": "PermissionResponseDto",
  "description": "Permission information response",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-permission-api-openapi.yml#/components/schemas/PermissionResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Server-assigned unique identifier for the permission."
    },
    "resource": {
      "type": "string",
      "description": "Name of the resource this permission governs (e.g. 'user', 'roster'). Mirrors the resource value supplied when the permission was created or last replaced."
    },
    "action": {
      "type": "string",
      "description": "Name of the action this permission grants on the resource (e.g. 'read', 'create'). Mirrors the action value supplied when the permission was created or last replaced."
    },
    "description": {
      "type": "string",
      "description": "Human-readable explanation of what the permission allows. Optional; may be null if it was not supplied at creation."
    },
    "createdAt": {
      "$ref": "#/$defs/OffsetDateTime",
      "type": "string",
      "description": "Timestamp the permission was created, in ISO-8601 format."
    },
    "updatedAt": {
      "$ref": "#/$defs/OffsetDateTime",
      "type": "string",
      "description": "Timestamp the permission was last updated, in ISO-8601 format."
    }
  },
  "$defs": {
    "OffsetDateTime": {
      "type": "string",
      "format": "date-time"
    }
  }
}