{
  "$id": "http://werf.io/contrib_resource_status_rules.schema.json",
  "$schema": "https://json-schema.org/draft-07/schema",
  "properties": {
    "rules": {
      "items": {
        "dependencies": {
          "resourceGroup": [
            "resourceKind"
          ],
          "resourceKind": [
            "resourceGroup"
          ]
        },
        "properties": {
          "conditions": {
            "properties": {
              "failed": {
                "items": {
                  "minLength": 1,
                  "type": "string"
                },
                "type": "array"
              },
              "progressing": {
                "items": {
                  "minLength": 1,
                  "type": "string"
                },
                "type": "array"
              },
              "ready": {
                "items": {
                  "minLength": 1,
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "ready",
              "progressing"
            ],
            "type": "object"
          },
          "humanJsonPath": {
            "minLength": 1,
            "type": "string"
          },
          "jsonPath": {
            "minLength": 1,
            "type": "string"
          },
          "resourceGroup": {
            "minLength": 1,
            "type": "string"
          },
          "resourceKind": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "jsonPath",
          "humanJsonPath",
          "conditions"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "rules"
  ],
  "title": "Contrib resource status rules schema",
  "type": "object"
}