{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://jsonlogic.com/schemas/common/binary-args.json",

  "title": "Binary Arg",
  "description": "Up to two args of valid JSON Logic data source.",

  "oneOf": [
    {
      "title": "Array",
      "description": "An array with one or two elements.",
      "type": "array",
      "minItems": 1,
      "maxItems": 2,
      "items": {
        "$ref": "http://jsonlogic.com/schemas/common/any.json"
      }
    },
    {
      "$ref": "http://jsonlogic.com/schemas/common/any-wo-array.json",
      "title": "Single Arg",
      "description": "Note: binary operators can also take a single, non array argument:"
    }
  ]
}
