{
  "$schema": "https://json-schema.org/draft-04/schema#",
  "additionalProperties": false,
  "properties": {
    "changelog": {
      "description": "Changelog defines the changed from the previous version\nAll changes in the same version *must* be backwards compatible\nOnly notable changes will be shown here, for the full version history see git!",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "description": {
      "description": "Describe whe the query type is for",
      "type": "string"
    },
    "discriminators": {
      "description": "Multiple schemas can be defined using discriminators",
      "items": {
        "additionalProperties": false,
        "properties": {
          "field": {
            "description": "DiscriminatorField is the field used to link behavior to this specific\nquery type.  It is typically \"queryType\", but can be another field if necessary",
            "type": "string"
          },
          "value": {
            "description": "The discriminator value",
            "type": "string"
          }
        },
        "required": [
          "field",
          "value"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "examples": {
      "description": "Examples (include a wrapper) ideally a template!",
      "items": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "description": "Optionally explain why the example is interesting",
            "type": "string"
          },
          "name": {
            "description": "Version identifier or empty if only one exists",
            "type": "string"
          },
          "saveModel": {
            "additionalProperties": true,
            "description": "An example value saved that can be saved in a dashboard",
            "type": "object"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "schema": {
      "$ref": "https://json-schema.org/draft-04/schema#",
      "description": "The query schema represents the properties that can be sent to the API\nIn many cases, this may be the same properties that are saved in a dashboard\nIn the case where the save model is different, we must also specify a save model",
      "type": "object"
    }
  },
  "required": [
    "schema",
    "examples"
  ],
  "type": "object"
}