{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/json-e-templates/latest.json",
  "title": "JSON-e templates",
  "x-lintel": {
    "source": "https://www.schemastore.org/jsone.json",
    "sourceSha256": "37cf01f3837d2f192061aada5559bdfe7167005f9949e23e617a7e1c351196ef"
  },
  "type": "object",
  "properties": {
    "$else": {
      "$ref": "#/$defs/jsone-value"
    },
    "$eval": {
      "type": "string"
    },
    "$flatten": {
      "$ref": "#/$defs/jsone-array"
    },
    "$flattenDeep": {
      "$ref": "#/$defs/jsone-array"
    },
    "$fromNow": {
      "type": "string"
    },
    "$if": {
      "type": "string"
    },
    "$json": {
      "$ref": "#/$defs/jsone-value"
    },
    "$let": {
      "type": "object",
      "additionalProperties": {
        "additionalProperties": {
          "$ref": "#"
        }
      }
    },
    "$map": {
      "$ref": "#/$defs/jsone-array"
    },
    "$match": {
      "$ref": "#"
    },
    "$merge": {
      "$ref": "#/$defs/jsone-object-array"
    },
    "$mergeDeep": {
      "$ref": "#/$defs/jsone-object-array"
    },
    "$reverse": {
      "$ref": "#"
    },
    "$sort": {
      "anyOf": [
        {
          "$ref": "#"
        },
        {
          "type": "array",
          "items": {
            "type": "number"
          }
        }
      ]
    },
    "$switch": {
      "$ref": "#"
    },
    "$then": {
      "$ref": "#/$defs/jsone-value"
    },
    "in": {
      "$ref": "#"
    }
  },
  "$defs": {
    "jsone-value": {
      "oneOf": [
        {
          "$ref": "#"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#"
          }
        },
        {
          "type": [
            "null",
            "boolean",
            "number",
            "string",
            "integer"
          ]
        }
      ]
    },
    "jsone-array": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/jsone-value"
      }
    },
    "jsone-object-array": {
      "type": "array",
      "items": {
        "$ref": "#"
      }
    }
  },
  "additionalProperties": {
    "$ref": "#/$defs/jsone-value"
  },
  "$comment": "https://json-e.js.org"
}
