{
  "$schema": "http://json-schema.org/schema",
  "id": "architecture.framework.component",
  "title": "Architecture Component Schematic",
  "type": "object",
  "description": "Creates a new, generic component group in the current project.",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the component.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What should this component be named?"
    },
    "fields": {
      "type": "string",
      "description": "The CRUD fields of the component.",
      "$default": {
        "$source": "argv",
        "index": 1
      },
      "x-prompt": "Which CRUD fields should the component have?"
    },
    "project": {
      "type": "string",
      "description": "The name of the project.",
      "$default": {
        "$source": "projectName"
      }
    }
  },
  "required": [
    "name",
    "fields"
  ]
}
