{
  "$schema": "http://json-schema.org/schema",
  "$id": "controller",
  "title": "ControllerSchema",
  "type": "object",
  "properties": {
    "aggregate": {
      "type": "string"
    },
    "command": {
      "type": "string"
    },
    "httpMethod": {
      "type": "string",
      "default": "Put"
    },
    "isCreating": {
      "type": "boolean"
    },
    "needsDto": {
      "type": "boolean"
    },
    "parameters": {
      "type": "array",
      "items": {
        "$ref": "src/es-cqrs/schema.json#/definitions/parameter"
      }
    },
    "imports": {
      "type": "array",
      "items": {
        "$ref": "src/es-cqrs/schema.json#/definitions/import"
      }
    }
  },
  "required": ["aggregate", "command", "isCreating", "needsDto"]
}
