{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "additionalProperties": {
    "$ref": "#"
  },
  "definitions": {
    "@jdt.path": {
      "type": "string",
      "description": "Use JSONPath syntax to navigate to the node where the transform should be applied."
    },
    "@jdt.value": {
      "type": "string",
      "description": "The transformation value that should be applied."
    }
  },
  "id": "https://json.schemastore.org/jdt.json",
  "properties": {
    "@jdt.rename": {
      "anyOf": [
        {
          "type": "object",
          "description": "Renames nodes",
          "properties": {
            "@jdt.path": {
              "$ref": "#/definitions/@jdt.path"
            },
            "@jdt.value": {
              "$ref": "#/definitions/@jdt.value"
            }
          }
        },
        {
          "type": "array",
          "description": "Renames nodes",
          "items": {
            "properties": {
              "@jdt.path": {
                "$ref": "#/definitions/@jdt.path"
              },
              "@jdt.value": {
                "$ref": "#/definitions/@jdt.value"
              }
            }
          }
        }
      ]
    },
    "@jdt.replace": {
      "type": ["array", "object"],
      "description": "Replaces the current node with the given value. ",
      "properties": {
        "@jdt.path": {
          "$ref": "#/definitions/@jdt.path"
        },
        "@jdt.value": {
          "$ref": "#/definitions/@jdt.value"
        }
      },
      "items": {
        "properties": {
          "@jdt.path": {
            "$ref": "#/definitions/@jdt.path"
          },
          "@jdt.value": {
            "$ref": "#/definitions/@jdt.value"
          }
        }
      }
    },
    "@jdt.remove": {
      "type": ["array", "boolean", "object", "string"],
      "description": "Removes the node with the given name from the current level.",
      "properties": {
        "@jdt.path": {
          "$ref": "#/definitions/@jdt.path"
        }
      },
      "items": {
        "type": ["boolean", "integer", "null", "number", "object", "string"]
      }
    },
    "@jdt.merge": {
      "description": "Merges the current node value with the given object.",
      "type": ["object", "array"],
      "properties": {
        "@jdt.path": {
          "$ref": "#/definitions/@jdt.path"
        },
        "@jdt.value": {
          "$ref": "#/definitions/@jdt.value"
        }
      },
      "items": {
        "properties": {
          "@jdt.path": {
            "$ref": "#/definitions/@jdt.path"
          },
          "@jdt.value": {
            "$ref": "#/definitions/@jdt.value"
          }
        }
      }
    }
  },
  "title": "JSON schema for JSON Document Transforms",
  "type": "object"
}
