github.com/influxdata/influxdb/v2@v2.7.6/influxql/v1validation/validation.json (about)

     1  {
     2    "$schema": "http://json-schema.org/draft-07/schema#",
     3    "$id": "http://influxdata.com/idpe.schema.json",
     4    "title": "InfluxQL Test",
     5    "description": "An InfluxQL Test Schema",
     6    "type": "object",
     7    "required": ["tests"],
     8    "additionalProperties": false,
     9    "properties": {
    10      "description": {
    11        "description": "An optional description of the test suite",
    12        "type": "string"
    13      },
    14      "tests": {
    15        "type": "array",
    16        "items": {"$ref": "#/definitions/test"}
    17      },
    18      "dataset": {
    19        "description": "The dataset to be used for this test",
    20        "type": "string"
    21      },
    22      "generated": {
    23        "description": "The dataset to be used for this test",
    24        "type": "object",
    25        "required": ["start", "end", "toml"],
    26        "properties": {
    27          "start": {
    28            "description": "The start time in restricted RFC3339 or nanoseconds",
    29            "type": "string",
    30            "pattern": "^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z|\\d+)$"
    31          },
    32          "end": {
    33            "description": "The end time in restricted RFC3339",
    34            "type": "string",
    35            "pattern": "^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z|\\d+)$"
    36          },
    37          "toml": {
    38            "description": "The TOML schema for the dataset",
    39            "type": "string"
    40          }
    41        }
    42      }
    43    },
    44    "oneOf": [
    45      {"required": ["dataset"]},
    46      {"required": ["generated"]}
    47    ],
    48    "definitions": {
    49      "test": {
    50        "type": "object",
    51        "required": ["query", "result"],
    52        "additionalProperties": false,
    53        "properties": {
    54          "name": {
    55            "description": "A name for this test",
    56            "type": "string"
    57          },
    58          "description": {
    59            "description": "An optional description of the test",
    60            "type": "string"
    61          },
    62          "query": {
    63            "description": "The InfluxQL query to under test",
    64            "type": "string"
    65          },
    66          "result": {
    67            "description": "The expected results in CSV format",
    68            "type": "string"
    69          }
    70        }
    71      }
    72    }
    73  }