{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-custom-property-by-entity-request-schema.json",
  "title": "CustomPropertyByEntityRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-catalogcustomproperties-api-openapi.yml#/components/schemas/CustomPropertyByEntityRequest",
  "x-stoplight": {
    "id": "5tvio8q8l1dpd"
  },
  "allOf": [
    {
      "$ref": "#/$defs/CustomPropertiesBase"
    },
    {
      "type": "object",
      "properties": {
        "properties": {
          "type": "array",
          "x-stoplight": {
            "id": "8t9gstypcz6rq"
          },
          "items": {
            "$ref": "#/$defs/PropertyValue"
          }
        }
      }
    }
  ],
  "$defs": {
    "CustomPropertiesBase": {
      "title": "CustomPropertiesBase",
      "x-stoplight": {
        "id": "blleozqeppo3p"
      },
      "type": "object",
      "description": "Custom properties base",
      "properties": {
        "entity_ref": {
          "type": "string",
          "x-stoplight": {
            "id": "f60m7omezo34z"
          }
        },
        "property": {
          "type": "string",
          "x-stoplight": {
            "id": "e60m6bmezo34y"
          }
        },
        "value": {
          "type": "object",
          "x-stoplight": {
            "id": "00wv958ee37z0"
          }
        },
        "mode": {
          "type": "string",
          "x-stoplight": {
            "id": "ngeqasui9chk4"
          },
          "enum": [
            "append",
            "replace"
          ]
        }
      }
    },
    "PropertyValue": {
      "title": "PropertyValue",
      "x-stoplight": {
        "id": "awleozpepzo2p"
      },
      "type": "object",
      "description": "Value overrides for custom property",
      "required": [
        "property",
        "value"
      ],
      "properties": {
        "property": {
          "type": "string",
          "x-stoplight": {
            "id": "e60m6bmezo34y"
          }
        },
        "value": {
          "type": "object",
          "x-stoplight": {
            "id": "00wv958ee37z0"
          }
        },
        "mode": {
          "type": "string",
          "x-stoplight": {
            "id": "ngeqasui9chk4"
          },
          "enum": [
            "append",
            "replace"
          ]
        }
      }
    }
  }
}