{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-custom-property-filter-request-schema.json",
  "title": "CustomPropertyFilterRequest",
  "description": "Custom Property filter request for ingestion",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-catalogcustomproperties-api-openapi.yml#/components/schemas/CustomPropertyFilterRequest",
  "x-stoplight": {
    "id": "r7b8oidy5wmw3"
  },
  "allOf": [
    {
      "$ref": "#/$defs/PropertyValue"
    },
    {
      "type": "object",
      "required": [
        "filter"
      ],
      "properties": {
        "filter": {
          "$ref": "#/$defs/ScorecardFilter"
        },
        "skip_entity_refs": {
          "type": "array",
          "x-stoplight": {
            "id": "9rtf97h3uu9z3"
          },
          "items": {
            "x-stoplight": {
              "id": "etzt6sp88w5iz"
            },
            "type": "string"
          }
        }
      }
    }
  ],
  "$defs": {
    "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"
          ]
        }
      }
    },
    "ScorecardFilter": {
      "title": "ScorecardFilter",
      "x-stoplight": {
        "id": "xwnr2xalsb1fv"
      },
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "x-stoplight": {
            "id": "ni2n6gaelw2sh"
          }
        },
        "type": {
          "type": "string",
          "x-stoplight": {
            "id": "pit0to8ng7rtl"
          }
        },
        "owners": {
          "type": "array",
          "x-stoplight": {
            "id": "ibe4axxxrnwpl"
          },
          "items": {
            "x-stoplight": {
              "id": "kde7prhuw2ww2"
            },
            "type": "string"
          }
        },
        "tags": {
          "type": "array",
          "x-stoplight": {
            "id": "9sqie0nb3f08d"
          },
          "items": {
            "x-stoplight": {
              "id": "8sko0og6lpbyh"
            },
            "type": "string"
          }
        },
        "lifecycle": {
          "type": "array",
          "x-stoplight": {
            "id": "9rtf97h3uu9z3"
          },
          "items": {
            "x-stoplight": {
              "id": "etzt6sp88w5iz"
            },
            "type": "string"
          }
        }
      },
      "required": [
        "kind"
      ]
    }
  }
}