{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "PostConditionPrincipal",
  "type": "object",
  "anyOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "description": "Principal Origin",
      "required": ["type_id"],
      "properties": {
        "type_id": {
          "type": "string",
          "description": "String literal of type `PostConditionPrincipalType`",
          "enum": ["principal_origin"]
        }
      }
    },
    {
      "type": "object",
      "description": "Principal Standard",
      "required": ["type_id", "address"],
      "additionalProperties": false,
      "properties": {
        "type_id": {
          "type": "string",
          "description": "String literal of type `PostConditionPrincipalType`",
          "enum": ["principal_standard"]
        },
        "address": { "type": "string" }
      }
    },
    {
      "type": "object",
      "description": "Principal Contract",
      "required": ["type_id", "address", "contract_name"],
      "additionalProperties": false,
      "properties": {
        "type_id": {
          "type": "string",
          "description": "String literal of type `PostConditionPrincipalType`",
          "enum": ["principal_contract"]
        },
        "address": { "type": "string" },
        "contract_name": { "type": "string" }
      }
    }
  ]
}
