{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prosperstack/json-schema/prosperstack-property-schema.json",
  "title": "Property",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prosperstack-properties-api-openapi.yml#/components/schemas/Property",
  "type": "object",
  "required": [
    "id",
    "key",
    "name",
    "entity",
    "type",
    "format",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "entity": {
      "type": "string",
      "enum": [
        "subscriber",
        "subscription"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "text",
        "number",
        "boolean",
        "date"
      ]
    },
    "format": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "number",
        "currency",
        null
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}